pub enum ScaleRatio {
MinorSecond,
MajorSecond,
MinorThird,
MajorThird,
PerfectFourth,
AugmentedFourth,
PerfectFifth,
GoldenRatio,
Custom(f64),
}Variants§
MinorSecond
MajorSecond
MinorThird
MajorThird
PerfectFourth
AugmentedFourth
PerfectFifth
GoldenRatio
Custom(f64)
Implementations§
Source§impl ScaleRatio
impl ScaleRatio
pub fn value(&self) -> Result<f64, ModularScaleError>
Trait Implementations§
Source§impl Clone for ScaleRatio
impl Clone for ScaleRatio
Source§fn clone(&self) -> ScaleRatio
fn clone(&self) -> ScaleRatio
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScaleRatio
impl Debug for ScaleRatio
Source§impl PartialEq for ScaleRatio
impl PartialEq for ScaleRatio
Source§fn eq(&self, other: &ScaleRatio) -> bool
fn eq(&self, other: &ScaleRatio) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScaleRatio
impl StructuralPartialEq for ScaleRatio
Auto Trait Implementations§
impl Freeze for ScaleRatio
impl RefUnwindSafe for ScaleRatio
impl Send for ScaleRatio
impl Sync for ScaleRatio
impl Unpin for ScaleRatio
impl UnsafeUnpin for ScaleRatio
impl UnwindSafe for ScaleRatio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more