[−][src]Struct rust_music_theory::scale::Scale
Fields
tonic: PitchClassoctave: u8scale_type: ScaleTypemode: Option<Mode>intervals: Vec<Interval>direction: DirectionMethods
impl Scale[src]
pub fn new(
scale_type: ScaleType,
tonic: PitchClass,
octave: u8,
mode: Option<Mode>
) -> Result<Self, ScaleError>[src]
scale_type: ScaleType,
tonic: PitchClass,
octave: u8,
mode: Option<Mode>
) -> Result<Self, ScaleError>
pub fn from_regex(string: &str) -> Result<Self, ScaleError>[src]
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,