[][src]Enum pitch_calc::letter::Letter

pub enum Letter {
    C,
    Csh,
    Db,
    D,
    Dsh,
    Eb,
    E,
    F,
    Fsh,
    Gb,
    G,
    Gsh,
    Ab,
    A,
    Ash,
    Bb,
    B,
}

The letter representation for each step in the 12-tone, equal temperament, chromatic scale.

Variants

C
Csh
Db
D
Dsh
Eb
E
F
Fsh
Gb
G
Gsh
Ab
A
Ash
Bb
B

Methods

impl Letter[src]

pub fn is_black_key(self) -> bool[src]

Returns whether or not the note would be a black key on a standard piano or keyboard.

Trait Implementations

impl Add<Letter> for Letter[src]

type Output = Letter

The resulting type after applying the + operator.

impl<T: Int> Add<T> for Letter[src]

type Output = Letter

The resulting type after applying the + operator.

impl Clone for Letter[src]

impl Copy for Letter[src]

impl Debug for Letter[src]

impl Eq for Letter[src]

impl FromPrimitive for Letter[src]

impl Ord for Letter[src]

impl PartialEq<Letter> for Letter[src]

impl PartialOrd<Letter> for Letter[src]

impl Rand for Letter[src]

impl Sub<Letter> for Letter[src]

type Output = Letter

The resulting type after applying the - operator.

impl<T: Int> Sub<T> for Letter[src]

type Output = Letter

The resulting type after applying the - operator.

impl ToPrimitive for Letter[src]

Auto Trait Implementations

impl RefUnwindSafe for Letter

impl Send for Letter

impl Sync for Letter

impl Unpin for Letter

impl UnwindSafe for Letter

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, 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.