pub struct ExactVoicing {
pub at: Time,
pub notes: Vec<ExactVoiceNote>,
}Expand description
Exact sounding notes at one score boundary.
Fields§
§at: TimeBoundary in exact whole-note time.
notes: Vec<ExactVoiceNote>Notes sorted by pitch, then voice and event identity.
Implementations§
Source§impl ExactVoicing
impl ExactVoicing
Sourcepub fn from_staff(staff: &Staff, at: Time) -> Result<Self, TransformError>
pub fn from_staff(staff: &Staff, at: Time) -> Result<Self, TransformError>
Reads all notes sounding at at from an identity-bearing staff.
Half-open note spans are used: an event is sounding exactly when
onset <= at < end.
Trait Implementations§
Source§impl Clone for ExactVoicing
impl Clone for ExactVoicing
Source§fn clone(&self) -> ExactVoicing
fn clone(&self) -> ExactVoicing
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 ExactVoicing
impl Debug for ExactVoicing
impl Eq for ExactVoicing
Source§impl PartialEq for ExactVoicing
impl PartialEq for ExactVoicing
impl StructuralPartialEq for ExactVoicing
Auto Trait Implementations§
impl Freeze for ExactVoicing
impl RefUnwindSafe for ExactVoicing
impl Send for ExactVoicing
impl Sync for ExactVoicing
impl Unpin for ExactVoicing
impl UnsafeUnpin for ExactVoicing
impl UnwindSafe for ExactVoicing
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