[][src]Struct rust_music_theory::scale::Scale

pub struct Scale {
    pub tonic: PitchClass,
    pub octave: u8,
    pub scale_type: ScaleType,
    pub mode: Option<Mode>,
    pub intervals: Vec<Interval>,
    pub direction: Direction,
}

Fields

tonic: PitchClassoctave: u8scale_type: ScaleTypemode: Option<Mode>intervals: Vec<Interval>direction: Direction

Methods

impl Scale[src]

pub fn new(
    scale_type: ScaleType,
    tonic: PitchClass,
    octave: u8,
    mode: Option<Mode>
) -> Result<Self, ScaleError>
[src]

pub fn from_regex(string: &str) -> Result<Self, ScaleError>[src]

Trait Implementations

impl Debug for Scale[src]

impl Default for Scale[src]

impl Notes for Scale[src]

Auto Trait Implementations

impl RefUnwindSafe for Scale

impl Send for Scale

impl Sync for Scale

impl Unpin for Scale

impl UnwindSafe for Scale

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, 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.