pub struct SetScoreTextCmd {
pub text_index: usize,
pub text: Option<StyledText>,
}Expand description
Insert, replace, or remove one score-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§
§text_index: usize§text: Option<StyledText>Trait Implementations§
Source§impl Clone for SetScoreTextCmd
impl Clone for SetScoreTextCmd
Source§fn clone(&self) -> SetScoreTextCmd
fn clone(&self) -> SetScoreTextCmd
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 SetScoreTextCmd
impl Debug for SetScoreTextCmd
Source§impl<'de> Deserialize<'de> for SetScoreTextCmd
impl<'de> Deserialize<'de> for SetScoreTextCmd
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 SetScoreTextCmd
impl RefUnwindSafe for SetScoreTextCmd
impl Send for SetScoreTextCmd
impl Sync for SetScoreTextCmd
impl Unpin for SetScoreTextCmd
impl UnsafeUnpin for SetScoreTextCmd
impl UnwindSafe for SetScoreTextCmd
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