pub struct BrailleKeyboard {
pub text: BrailleText,
pub right_hand_line: Option<usize>,
pub left_hand_line: Option<usize>,
pub highest_measure_number_length: usize,
}Expand description
Braille for the two hands at a keyboard, side by side in lines of each:
music21’s BrailleKeyboard.
Fields§
§text: BrailleTextThe text written so far.
right_hand_line: Option<usize>Which of the text’s lines the right hand is on.
left_hand_line: Option<usize>Which of the text’s lines the left hand is on.
highest_measure_number_length: usizeHow many digits the highest measure number has, so the numbers line up.
Implementations§
Source§impl BrailleKeyboard
impl BrailleKeyboard
Sourcepub fn make_new_lines(&mut self)
pub fn make_new_lines(&mut self)
A line for each hand, the right one on the current line if it is
empty: music21’s makeNewLines.
Trait Implementations§
Source§impl Clone for BrailleKeyboard
impl Clone for BrailleKeyboard
Source§impl Debug for BrailleKeyboard
impl Debug for BrailleKeyboard
impl Eq for BrailleKeyboard
Source§impl PartialEq for BrailleKeyboard
impl PartialEq for BrailleKeyboard
impl StructuralPartialEq for BrailleKeyboard
Auto Trait Implementations§
impl Freeze for BrailleKeyboard
impl RefUnwindSafe for BrailleKeyboard
impl Send for BrailleKeyboard
impl Sync for BrailleKeyboard
impl Unpin for BrailleKeyboard
impl UnsafeUnpin for BrailleKeyboard
impl UnwindSafe for BrailleKeyboard
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