[][src]Struct chordpro::chords::Chord

pub struct Chord {
    pub root: Note,
    pub minor: bool,
    pub others: String,
    pub number: u8,
    pub bass: Note,
}

Fields

root: Noteminor: boolothers: Stringnumber: u8bass: Note

Methods

impl Chord[src]

pub fn major(n: Note) -> Self[src]

pub fn minor(n: Note) -> Self[src]

Trait Implementations

impl Binary for Chord[src]

impl Clone for Chord[src]

impl Debug for Chord[src]

impl Default for Chord[src]

impl Display for Chord[src]

impl FromStr for Chord[src]

type Err = Error<Rule>

The associated error which can be returned from parsing.

impl PartialEq<Chord> for Chord[src]

impl Serialize for Chord[src]

impl StructuralPartialEq for Chord[src]

Auto Trait Implementations

impl RefUnwindSafe for Chord

impl Send for Chord

impl Sync for Chord

impl Unpin for Chord

impl UnwindSafe for Chord

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.