pub enum Affinity {
Signature = 3,
TempoText = 4,
MetronomeMark = 5,
LongTextExpression = 6,
Inaccord = 7,
SplitNoteGroupingA = 8,
NoteGrouping = 9,
SplitNoteGroupingB = 10,
}Expand description
Which kind of grouping an element goes in, in the order a measure’s
groupings are written: music21’s Affinity.
Variants§
Signature = 3
Key and time signatures.
TempoText = 4
Tempo words.
MetronomeMark = 5
A metronome mark.
LongTextExpression = 6
Text of more than one word.
Inaccord = 7
Voices written in accord.
SplitNoteGroupingA = 8
The first half of a group of notes split to fit a line.
NoteGrouping = 9
Notes, rests, chords, dynamics, clefs, short texts.
SplitNoteGroupingB = 10
The second half of a split group, and barlines.
Implementations§
Trait Implementations§
impl Copy for Affinity
impl Eq for Affinity
Source§impl Ord for Affinity
impl Ord for Affinity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Affinity
impl PartialOrd for Affinity
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl Freeze for Affinity
impl RefUnwindSafe for Affinity
impl Send for Affinity
impl Sync for Affinity
impl Unpin for Affinity
impl UnsafeUnpin for Affinity
impl UnwindSafe for Affinity
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