pub struct TextExpression { /* private fields */ }Expand description
Words written over or under the staff: music21’s TextExpression, a
score’s dolce or cresc. or a movement’s Grave where it is not read
as a tempo.
Implementations§
Source§impl TextExpression
impl TextExpression
Sourcepub fn set_content(&mut self, content: impl Into<String>)
pub fn set_content(&mut self, content: impl Into<String>)
Changes the words.
Sourcepub fn placement(&self) -> Option<Placement>
pub fn placement(&self) -> Option<Placement>
Which side of the staff the words are written on, where the score says.
Sourcepub fn set_placement(&mut self, placement: Option<Placement>)
pub fn set_placement(&mut self, placement: Option<Placement>)
Says which side of the staff the words are written on.
Trait Implementations§
Source§impl Clone for TextExpression
impl Clone for TextExpression
Source§impl Debug for TextExpression
impl Debug for TextExpression
Source§impl Default for TextExpression
impl Default for TextExpression
Source§impl<'de> Deserialize<'de> for TextExpression
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TextExpression
Available on crate feature
serde only.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 Eq for TextExpression
Source§impl From<TextExpression> for StreamElement
impl From<TextExpression> for StreamElement
Source§fn from(value: TextExpression) -> Self
fn from(value: TextExpression) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextExpression
impl PartialEq for TextExpression
Source§impl Serialize for TextExpression
Available on crate feature serde only.
impl Serialize for TextExpression
Available on crate feature
serde only.impl StructuralPartialEq for TextExpression
Auto Trait Implementations§
impl Freeze for TextExpression
impl RefUnwindSafe for TextExpression
impl Send for TextExpression
impl Sync for TextExpression
impl Unpin for TextExpression
impl UnsafeUnpin for TextExpression
impl UnwindSafe for TextExpression
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more