pub struct SerialRealization { /* private fields */ }Expand description
Realized serial notes plus exact event spans, retaining the source plan unchanged.
Implementations§
Source§impl SerialRealization
impl SerialRealization
Sourcepub fn new(
plan: SerialPlan,
events: Vec<RealizedSerialEvent>,
notes: Vec<RealizedSerialNote>,
ledger: InvariantLedger<RealizerId>,
) -> Self
pub fn new( plan: SerialPlan, events: Vec<RealizedSerialEvent>, notes: Vec<RealizedSerialNote>, ledger: InvariantLedger<RealizerId>, ) -> Self
Builds one exact realization from the preserved plan, event spans, and notes.
Sourcepub fn new_with_spine(
plan: SerialPlan,
events: Vec<RealizedSerialEvent>,
notes: Vec<RealizedSerialNote>,
ledger: InvariantLedger<RealizerId>,
spine_report: Option<SerialSpineReport>,
) -> Self
pub fn new_with_spine( plan: SerialPlan, events: Vec<RealizedSerialEvent>, notes: Vec<RealizedSerialNote>, ledger: InvariantLedger<RealizerId>, spine_report: Option<SerialSpineReport>, ) -> Self
Builds one exact realization and attaches an optional adaptation report.
Sourcepub fn plan(&self) -> &SerialPlan
pub fn plan(&self) -> &SerialPlan
Returns the equality-identical structural source plan.
Sourcepub fn events(&self) -> &[RealizedSerialEvent]
pub fn events(&self) -> &[RealizedSerialEvent]
Returns the exact realized event spans in canonical time order.
Sourcepub fn notes(&self) -> &[RealizedSerialNote]
pub fn notes(&self) -> &[RealizedSerialNote]
Returns the realized sounding notes in canonical order.
Sourcepub fn sounding_pitches(&self) -> Vec<Pitch>
pub fn sounding_pitches(&self) -> Vec<Pitch>
Returns the sounding pitches in canonical note order.
Sourcepub fn ledger(&self) -> &InvariantLedger<RealizerId>
pub fn ledger(&self) -> &InvariantLedger<RealizerId>
Returns the realizer invariant ledger recorded for this realization.
Sourcepub fn spine_report(&self) -> Option<&SerialSpineReport>
pub fn spine_report(&self) -> Option<&SerialSpineReport>
Returns the optional serial-spine report attached by an adaptive realizer.
Trait Implementations§
Source§impl Clone for SerialRealization
impl Clone for SerialRealization
Source§fn clone(&self) -> SerialRealization
fn clone(&self) -> SerialRealization
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 SerialRealization
impl Debug for SerialRealization
Source§impl PartialEq for SerialRealization
impl PartialEq for SerialRealization
impl StructuralPartialEq for SerialRealization
Auto Trait Implementations§
impl Freeze for SerialRealization
impl RefUnwindSafe for SerialRealization
impl Send for SerialRealization
impl Sync for SerialRealization
impl Unpin for SerialRealization
impl UnsafeUnpin for SerialRealization
impl UnwindSafe for SerialRealization
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