[][src]Enum rust_music_theory::note::PitchClass

pub enum PitchClass {
    C,
    Cs,
    D,
    Ds,
    E,
    F,
    Fs,
    G,
    Gs,
    A,
    As,
    B,
}

Variants

C
Cs
D
Ds
E
F
Fs
G
Gs
A
As
B

Methods

impl PitchClass[src]

pub fn from_u8(val: u8) -> Self[src]

pub fn from_str(string: &str) -> Option<Self>[src]

pub fn from_interval(pitch: &Self, interval: &Interval) -> Self[src]

pub fn from_regex(string: &str) -> Result<(Self, Match), NoteError>[src]

Trait Implementations

impl Clone for PitchClass[src]

impl Copy for PitchClass[src]

impl Debug for PitchClass[src]

impl Display for PitchClass[src]

impl IntoEnumIterator for PitchClass[src]

type Iterator = PitchClassIter

impl PartialEq<PitchClass> for PitchClass[src]

impl StructuralPartialEq for PitchClass[src]

Auto Trait Implementations

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.