[][src]Struct musictheory::types::Cents

pub struct Cents(_);

Representation of Logarithmic pitch distance based on an equal tempered semitone (100 cents) and octave (1200 cents).

Methods

impl Cents[src]

pub fn steps(&self) -> Steps[src]

Steps represented by this Cents.

pub fn cents(&self) -> u16[src]

Get numeric value of Cents.

Trait Implementations

impl Clone for Cents[src]

impl Copy for Cents[src]

impl Debug for Cents[src]

impl Display for Cents[src]

impl From<Cents> for Steps[src]

impl From<Steps> for Cents[src]

impl From<u16> for Cents[src]

impl PartialEq<Cents> for Cents[src]

impl PartialOrd<Cents> for Cents[src]

impl StructuralPartialEq for Cents[src]

Auto Trait Implementations

impl RefUnwindSafe for Cents

impl Send for Cents

impl Sync for Cents

impl Unpin for Cents

impl UnwindSafe for Cents

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.