Enum music_theory::theory::enharmonic_note::Letter
source · #[repr(u32)]pub enum Letter {
A = 0,
B = 1,
C = 2,
D = 3,
E = 4,
F = 5,
G = 6,
}
Expand description
A letter represents one of the letters musical notes can start with.
Variants§
Implementations§
Trait Implementations§
source§impl Ord for Letter
impl Ord for Letter
source§impl PartialEq for Letter
impl PartialEq for Letter
source§impl PartialOrd for Letter
impl PartialOrd for Letter
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToEnharmonicNote for Letter
impl ToEnharmonicNote for Letter
source§fn to_enharmonic_note(self) -> EnharmonicNote
fn to_enharmonic_note(self) -> EnharmonicNote
Take self and return EnharmonicNote.
impl Copy for Letter
impl Eq for Letter
impl StructuralPartialEq for Letter
Auto Trait Implementations§
impl Freeze for Letter
impl RefUnwindSafe for Letter
impl Send for Letter
impl Sync for Letter
impl Unpin for Letter
impl UnwindSafe for Letter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more