pub struct ScoreFragmentMeasureAttributes {Show 23 fields
pub present: bool,
pub time_sig: Option<TimeSignature>,
pub key_sig: Option<KeySignature>,
pub clef: Option<Clef>,
pub mid_clefs: Vec<MidMeasureClef>,
pub tempo: Option<u16>,
pub tempo_ramp_to: Option<u16>,
pub instrument_change: Option<InstrumentDefinition>,
pub tablature_change: Option<TablatureConfig>,
pub barline_left: Option<Barline>,
pub barline_right: Option<Barline>,
pub volta: Option<VoltaBracket>,
pub tempo_text: Option<String>,
pub rehearsal: Option<String>,
pub navigation: Option<String>,
pub expression_text: Option<String>,
pub texts: Vec<StyledText>,
pub figured_bass: Vec<FiguredBassFigure>,
pub harp_pedal_diagrams: Vec<HarpPedalDiagram>,
pub multi_rest_count: Option<u8>,
pub system_break: bool,
pub page_break: bool,
pub section_break: bool,
}Expand description
Measure-level semantics carried by a v3 score fragment.
Measure numbers are deliberately not copied: the destination physical
position owns numbering. All other fields map directly to Measure so a
host does not need to rebuild staff-local time, key, instrument, or text
state around the pasted music.
Fields§
§present: bool§time_sig: Option<TimeSignature>§key_sig: Option<KeySignature>§clef: Option<Clef>§mid_clefs: Vec<MidMeasureClef>§tempo: Option<u16>§tempo_ramp_to: Option<u16>§instrument_change: Option<InstrumentDefinition>§tablature_change: Option<TablatureConfig>§barline_left: Option<Barline>§barline_right: Option<Barline>§volta: Option<VoltaBracket>§tempo_text: Option<String>§rehearsal: Option<String>§expression_text: Option<String>§texts: Vec<StyledText>§figured_bass: Vec<FiguredBassFigure>§harp_pedal_diagrams: Vec<HarpPedalDiagram>§multi_rest_count: Option<u8>§system_break: bool§page_break: bool§section_break: boolImplementations§
Source§impl ScoreFragmentMeasureAttributes
impl ScoreFragmentMeasureAttributes
Sourcepub fn apply_to_measure(&self, measure: &mut Measure)
pub fn apply_to_measure(&self, measure: &mut Measure)
Apply captured attributes without changing the destination’s physical measure number, voices, or source voice-number slots.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScoreFragmentMeasureAttributes
impl<'de> Deserialize<'de> for ScoreFragmentMeasureAttributes
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
impl StructuralPartialEq for ScoreFragmentMeasureAttributes
Auto Trait Implementations§
impl Freeze for ScoreFragmentMeasureAttributes
impl RefUnwindSafe for ScoreFragmentMeasureAttributes
impl Send for ScoreFragmentMeasureAttributes
impl Sync for ScoreFragmentMeasureAttributes
impl Unpin for ScoreFragmentMeasureAttributes
impl UnsafeUnpin for ScoreFragmentMeasureAttributes
impl UnwindSafe for ScoreFragmentMeasureAttributes
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