pub enum Notes {
Sharp(Sharps),
Flat(Flats),
Natural(Naturals),
}Expand description
Notes is an enumeration of all allowed symbolic representations of pitch classes
considered in music theory. For us, it provides a dynamic way of managing the different
pitch classes whiole providing a direct mapping to a static index
Variants§
Implementations§
Source§impl Notes
impl Notes
Sourcepub const fn is_natural(&self) -> bool
pub const fn is_natural(&self) -> bool
Returns true if the enum is Notes::Natural otherwise false
Trait Implementations§
Source§impl Ord for Notes
impl Ord for Notes
Source§impl PartialOrd for Notes
impl PartialOrd for Notes
impl Copy for Notes
impl Eq for Notes
impl StructuralPartialEq for Notes
Auto Trait Implementations§
impl Freeze for Notes
impl RefUnwindSafe for Notes
impl Send for Notes
impl Sync for Notes
impl Unpin for Notes
impl UnwindSafe for Notes
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