pub struct SetMeasureTextCmd {
pub part_index: usize,
pub staff_index: usize,
pub measure_index: usize,
pub text_index: usize,
pub text: Option<StyledText>,
}Expand description
Insert, replace, or remove one measure-level styled text entry.
text_index == texts.len() with Some(text) appends an entry. An existing
index with Some(text) replaces it; an existing index with None removes it.
None at the end, or an index beyond the end, is rejected.
Fields§
§part_index: usize§staff_index: usize§measure_index: usize§text_index: usize§text: Option<StyledText>Trait Implementations§
Source§impl Clone for SetMeasureTextCmd
impl Clone for SetMeasureTextCmd
Source§fn clone(&self) -> SetMeasureTextCmd
fn clone(&self) -> SetMeasureTextCmd
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 SetMeasureTextCmd
impl Debug for SetMeasureTextCmd
Source§impl<'de> Deserialize<'de> for SetMeasureTextCmd
impl<'de> Deserialize<'de> for SetMeasureTextCmd
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 SetMeasureTextCmd
impl RefUnwindSafe for SetMeasureTextCmd
impl Send for SetMeasureTextCmd
impl Sync for SetMeasureTextCmd
impl Unpin for SetMeasureTextCmd
impl UnsafeUnpin for SetMeasureTextCmd
impl UnwindSafe for SetMeasureTextCmd
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