pub struct ScoreFragmentMeasure {
pub relative_measure: usize,
pub source_voice_number: Option<u32>,
pub notes: Vec<Note>,
pub cross_staff_targets: Vec<Option<ScoreFragmentCrossStaffTarget>>,
pub attributes: ScoreFragmentMeasureAttributes,
}Expand description
One measure in a fragment voice lane.
Fields§
§relative_measure: usize§source_voice_number: Option<u32>Original positive MusicXML voice number, when imported from a sparse source voice. Keeping this per measure avoids flattening cursor semantics on paste.
notes: Vec<Note>§cross_staff_targets: Vec<Option<ScoreFragmentCrossStaffTarget>>Cross-staff targets expressed relative to this lane’s source staff. An empty vector denotes a v1 fragment with no remappable targets.
attributes: ScoreFragmentMeasureAttributesStaff-local measure attributes captured alongside this voice lane.
v1/v2 payloads deserialize with present: false and therefore retain
their historical notes-only paste behavior.
Trait Implementations§
Source§impl Clone for ScoreFragmentMeasure
impl Clone for ScoreFragmentMeasure
Source§impl Debug for ScoreFragmentMeasure
impl Debug for ScoreFragmentMeasure
Source§impl<'de> Deserialize<'de> for ScoreFragmentMeasure
impl<'de> Deserialize<'de> for ScoreFragmentMeasure
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScoreFragmentMeasure
impl RefUnwindSafe for ScoreFragmentMeasure
impl Send for ScoreFragmentMeasure
impl Sync for ScoreFragmentMeasure
impl Unpin for ScoreFragmentMeasure
impl UnsafeUnpin for ScoreFragmentMeasure
impl UnwindSafe for ScoreFragmentMeasure
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