pub enum EventContent {
Note(Pitch),
Chord(Chord),
Rest,
Sequence(Vec<MusicalEvent>),
}Expand description
The musical content of an event - what is actually played or heard.
Variants§
Trait Implementations§
Source§impl Clone for EventContent
impl Clone for EventContent
Source§fn clone(&self) -> EventContent
fn clone(&self) -> EventContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventContent
impl Debug for EventContent
Source§impl PartialEq for EventContent
impl PartialEq for EventContent
Source§fn eq(&self, other: &EventContent) -> bool
fn eq(&self, other: &EventContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventContent
Auto Trait Implementations§
impl Freeze for EventContent
impl RefUnwindSafe for EventContent
impl Send for EventContent
impl Sync for EventContent
impl Unpin for EventContent
impl UnsafeUnpin for EventContent
impl UnwindSafe for EventContent
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