pub enum Expression {
Ornament(Box<Ornament>),
Fermata(Fermata),
Arpeggio(ArpeggioType),
}Expand description
Something written on a note that is not its pitch or length: an entry
of music21’s GeneralNote.expressions.
Variants§
Ornament(Box<Ornament>)
An ornament: a mordent, a trill, a turn and the rest. Boxed, as an ornament is large and most expressions are not one.
Fermata(Fermata)
A fermata.
Arpeggio(ArpeggioType)
A chord spread from one end to the other.
Implementations§
Source§impl Expression
impl Expression
Sourcepub fn tie_attach(&self) -> &str
pub fn tie_attach(&self) -> &str
Which piece of a note split across a tie keeps this expression:
music21’s tieAttach, "first", "last" or "all". A fermata stays
on the last piece, an arpeggio on the first, and an ornament where it
says.
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§impl Debug for Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Expression
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
Source§impl From<Fermata> for Expression
impl From<Fermata> for Expression
Source§impl From<Ornament> for Expression
impl From<Ornament> for Expression
Source§impl PartialEq for Expression
impl PartialEq for Expression
Source§impl Serialize for Expression
Available on crate feature serde only.
impl Serialize for Expression
Available on crate feature
serde only.impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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