pub enum NoteName {
Do = 0,
Re = 2,
Mi = 4,
Fa = 5,
Sol = 7,
La = 9,
Si = 11,
}Expand description
Represents a note by name without a specific octave or accidental Supports both letters from A to G and traditional Do Re Mi … names
Variants§
Implementations§
Trait Implementations§
impl Copy for NoteName
impl Eq for NoteName
impl StructuralPartialEq for NoteName
Auto Trait Implementations§
impl Freeze for NoteName
impl RefUnwindSafe for NoteName
impl Send for NoteName
impl Sync for NoteName
impl Unpin for NoteName
impl UnwindSafe for NoteName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more