pub struct Movement {
pub name: Option<String>,
pub timeline: Timeline,
pub context_changes: Vec<ContextChange>,
}Expand description
A single movement within a larger musical work.
Classical works often consist of multiple movements with different tempos, keys, and characters (e.g., a symphony’s four movements).
Fields§
§name: Option<String>§timeline: Timeline§context_changes: Vec<ContextChange>Implementations§
Source§impl Movement
impl Movement
pub fn new(name: Option<String>) -> Self
pub fn set_timeline(&mut self, timeline: Timeline)
pub fn with_timeline(self, timeline: Timeline) -> Self
pub fn add_context_change(&mut self, change: ContextChange)
pub fn with_context_change(self, change: ContextChange) -> Self
pub fn total_duration(&self) -> Fraction
Trait Implementations§
impl StructuralPartialEq for Movement
Auto Trait Implementations§
impl Freeze for Movement
impl RefUnwindSafe for Movement
impl Send for Movement
impl Sync for Movement
impl Unpin for Movement
impl UnsafeUnpin for Movement
impl UnwindSafe for Movement
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