[]Enum ukebox::chord::Tuning

pub enum Tuning {
    C,
    D,
    G,
}

Variants

C
D
G

Methods

impl Tuning

pub fn variants() -> [&'static str; 3]

impl Tuning[src]

pub fn get_semitones(self) -> Semitones[src]

pub fn get_interval(self) -> Interval[src]

pub fn get_root_width(self) -> usize[src]

Get the width of the space that we need to print the name of the root notes (the names of the strings) for this tuning.

Trait Implementations

impl Clone for Tuning[src]

impl Copy for Tuning[src]

impl Debug for Tuning[src]

impl Display for Tuning

impl FromStr for Tuning

type Err = String

The associated error which can be returned from parsing.

Auto Trait Implementations

impl RefUnwindSafe for Tuning

impl Send for Tuning

impl Sync for Tuning

impl Unpin for Tuning

impl UnwindSafe for Tuning

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.