Enum rust_music::PhraseEntry
source · pub enum PhraseEntry {
Rest(f64),
Note(Note),
Chord(Chord),
}Expand description
Describes the entries contains in a Phrase
Variants§
Rest(f64)
Silent Rest that has a rhythm value (see constants::rhythm)
Note(Note)
A regular single Note
Chord(Chord)
A list of Notes played simultaneously
Implementations§
Trait Implementations§
source§impl Clone for PhraseEntry
impl Clone for PhraseEntry
source§fn clone(&self) -> PhraseEntry
fn clone(&self) -> PhraseEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PhraseEntry
impl Send for PhraseEntry
impl Sync for PhraseEntry
impl Unpin for PhraseEntry
impl UnwindSafe for PhraseEntry
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