pub enum RepeatExpressionKind {
Coda,
Segno,
Fine,
DaCapo,
DaCapoAlFine,
DaCapoAlCoda,
AlSegno,
DalSegno,
DalSegnoAlFine,
DalSegnoAlCoda,
}Expand description
Which of music21’s repeat expressions a mark is.
Variants§
Coda
The place a to Coda jumps to: music21’s Coda.
Segno
The sign a Dal Segno goes back to: music21’s Segno.
Fine
Where the piece ends after a jump back: music21’s Fine.
DaCapo
Back to the start: music21’s DaCapo.
DaCapoAlFine
Back to the start and on to Fine: music21’s DaCapoAlFine.
DaCapoAlCoda
Back to the start and on to the coda: music21’s DaCapoAlCoda.
AlSegno
On to the sign: music21’s AlSegno.
DalSegno
Back to the sign: music21’s DalSegno.
DalSegnoAlFine
Back to the sign and on to Fine: music21’s DalSegnoAlFine.
DalSegnoAlCoda
Back to the sign and on to the coda: music21’s DalSegnoAlCoda.
Implementations§
Source§impl RepeatExpressionKind
impl RepeatExpressionKind
Sourcepub fn class_name(self) -> &'static str
pub fn class_name(self) -> &'static str
music21’s class name for the kind.
Sourcepub fn from_class_name(name: &str) -> Option<Self>
pub fn from_class_name(name: &str) -> Option<Self>
The kind music21 names by this class name.
Sourcepub fn text_alternatives(self) -> &'static [&'static str]
pub fn text_alternatives(self) -> &'static [&'static str]
The ways the mark may be written, the first being how it is written
when nothing says otherwise: music21’s _textAlternatives.
Sourcepub fn is_marker(self) -> bool
pub fn is_marker(self) -> bool
Whether the mark is a place to jump to rather than an instruction to
jump: music21’s RepeatExpressionMarker against
RepeatExpressionCommand.
Sourcepub fn justify(self) -> &'static str
pub fn justify(self) -> &'static str
How the words are justified: an instruction to jump stands at the end of the bar it acts on, and so does Fine.
Sourcepub fn has_symbol(self) -> bool
pub fn has_symbol(self) -> bool
Whether the mark has a sign of its own: only the coda and the segno do.
Trait Implementations§
Source§impl Clone for RepeatExpressionKind
impl Clone for RepeatExpressionKind
impl Copy for RepeatExpressionKind
Source§impl Debug for RepeatExpressionKind
impl Debug for RepeatExpressionKind
Source§impl<'de> Deserialize<'de> for RepeatExpressionKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RepeatExpressionKind
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>,
impl Eq for RepeatExpressionKind
Source§impl Hash for RepeatExpressionKind
impl Hash for RepeatExpressionKind
Source§impl PartialEq for RepeatExpressionKind
impl PartialEq for RepeatExpressionKind
Source§impl Serialize for RepeatExpressionKind
Available on crate feature serde only.
impl Serialize for RepeatExpressionKind
serde only.impl StructuralPartialEq for RepeatExpressionKind
Auto Trait Implementations§
impl Freeze for RepeatExpressionKind
impl RefUnwindSafe for RepeatExpressionKind
impl Send for RepeatExpressionKind
impl Sync for RepeatExpressionKind
impl Unpin for RepeatExpressionKind
impl UnsafeUnpin for RepeatExpressionKind
impl UnwindSafe for RepeatExpressionKind
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
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> ⓘ
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> ⓘ
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