pub enum Token {
Show 16 variants
Metadata(AbcMetadata),
Bar(Bar),
Tuplet(AbcTuplet),
Tie,
SpannerStart(SpannerKind, Option<usize>),
ParenStop(Closes),
Staccato,
Upbow,
Downbow,
Accent,
Straccent,
Tenuto,
GraceStart,
GraceStop,
BrokenRhythm(BrokenRhythm),
Note(Box<AbcNote>),
}Expand description
One token of ABC: music21’s ABCToken and its subclasses.
Variants§
Metadata(AbcMetadata)
T:Title and the like.
Bar(Bar)
|, :| and the like.
Tuplet(AbcTuplet)
(3 and the like.
Tie
-.
SpannerStart(SpannerKind, Option<usize>)
A slur or a hairpin opening, and once processed the spanner it starts, by where it stands among the handler’s.
ParenStop(Closes)
), !crescendo)! or !diminuendo)!.
Staccato
..
Upbow
u.
Downbow
v.
Accent
K.
Straccent
k.
Tenuto
M.
GraceStart
{.
GraceStop
}.
BrokenRhythm(BrokenRhythm)
> to <<<.
Note(Box<AbcNote>)
A note, rest or chord.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Forget for Token
impl Freeze for Token
impl Move for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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,
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