pub enum NoteType {
Whole,
Half,
Quarter,
Eighth,
Sixteenth,
ThirtySecond,
Dotted(Box<NoteType>),
Triplet(Box<NoteType>),
}Expand description
A musical note type for duration calculations.
Variants§
Whole
Whole note (semibreve).
Half
Half note (minim).
Quarter
Quarter note (crotchet).
Eighth
Eighth note (quaver).
Sixteenth
Sixteenth note (semiquaver).
ThirtySecond
Thirty-second note (demisemiquaver).
Dotted(Box<NoteType>)
Dotted variant of a note type.
Triplet(Box<NoteType>)
Triplet variant of a note type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoteType
impl RefUnwindSafe for NoteType
impl Send for NoteType
impl Sync for NoteType
impl Unpin for NoteType
impl UnsafeUnpin for NoteType
impl UnwindSafe for NoteType
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