Enum rust_music::NoteName
source · 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§
source§impl PartialEq for NoteName
impl PartialEq for NoteName
impl Copy for NoteName
impl Eq for NoteName
impl StructuralEq for NoteName
impl StructuralPartialEq for NoteName
Auto Trait Implementations§
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