pub struct BrailleElement {
pub element: StreamElement,
pub offset: FloatType,
pub affinity: Affinity,
pub sort_order: i32,
pub english: Option<Vec<String>>,
pub context: NoteContext,
pub outgoing_key: Option<Option<IntegerType>>,
pub leaf: usize,
pub voice_english: Vec<Option<Vec<String>>>,
}Expand description
An element of a segment with what music21 keeps on it while transcribing: where it stands, its affinity, how it sorts, its English, its note context, and a key signature’s predecessor.
Fields§
§element: StreamElementA copy of the element, changed as music21 changes it.
offset: FloatTypeIts offset in its measure or voice.
affinity: AffinityIts affinity.
sort_order: i32How it sorts among elements at its offset: music21’s
classSortOrder as braille sets it.
english: Option<Vec<String>>Its English: music21’s editorial.brailleEnglish.
context: NoteContextIts slurs and beams, for a note.
outgoing_key: Option<Option<IntegerType>>The key signature before it, for a key signature: music21’s
outgoingKeySig.
leaf: usizeWhere its leaves start in the part, to find what music21 marked on it.
voice_english: Vec<Option<Vec<String>>>For a voice, the English of each element it holds once written, nothing for one not written.
Trait Implementations§
Source§impl Clone for BrailleElement
impl Clone for BrailleElement
Auto Trait Implementations§
impl Freeze for BrailleElement
impl RefUnwindSafe for BrailleElement
impl Send for BrailleElement
impl Sync for BrailleElement
impl Unpin for BrailleElement
impl UnsafeUnpin for BrailleElement
impl UnwindSafe for BrailleElement
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