Struct ukebox::chord_chart::ChordChart
source · [−]pub struct ChordChart { /* private fields */ }
Implementations
sourceimpl ChordChart
impl ChordChart
pub fn new(voicing: Voicing, width: Semitones) -> Self
sourcepub fn get_base_fret(&self) -> FretID
pub fn get_base_fret(&self) -> FretID
Determine from which fret to show the fretboard.
If the rightmost fret fits on the diagram, show the fretboard beginning at the first fret, otherwise use the leftmost fret needed for the chords to be played.
sourcepub fn get_root_width(&self) -> usize
pub fn get_root_width(&self) -> usize
Get the width of the space that we need to print the names of the root notes (the names of the strings).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChordChart
impl Send for ChordChart
impl Sync for ChordChart
impl Unpin for ChordChart
impl UnwindSafe for ChordChart
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more