#[repr(u8)]pub enum Modifier {
Minor,
Flat5,
Augmented5,
Major7,
Dominant(Degree),
Flat9,
Sharp9,
Sharp11,
Flat13,
Diminished,
}Expand description
An enum representing the modifier of a chord.
Modifiers are “special extensions” that essentially have the capacity to change how the chord is interpreted by the system. E.g., a dominant flat 9 chord is not just a dominant chord with a flat 9 extension, but rather a chord that is represented by an entirely specific scale (half/whole/half diminished).
Variants§
Minor
Minor modifier.
Flat5
Flat 5 modifier.
Augmented5
Sharp 5 modifier.
Major7
Major 7 modifier.
Dominant(Degree)
Dominant modifier with degree.
Flat9
Flat 9 modifier.
Sharp9
Sharp 9 modifier.
Sharp11
Sharp 11 modifier.
Flat13
Flat 13 modifier.
Diminished
Diminished modifier.
Trait Implementations§
impl Copy for Modifier
Source§impl<'de> Deserialize<'de> for Modifier
impl<'de> Deserialize<'de> for Modifier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Modifier
Source§impl HasIsDominant for Modifier
impl HasIsDominant for Modifier
Source§fn is_dominant(&self) -> bool
fn is_dominant(&self) -> bool
Returns whether the type (usually the modifier enum) is dominant.
Source§impl HasStaticName for Modifier
impl HasStaticName for Modifier
Source§fn static_name(&self) -> &'static str
fn static_name(&self) -> &'static str
Returns the static name of the type.
Source§impl Ord for Modifier
impl Ord for Modifier
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Modifier
impl PartialOrd for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin for Modifier
impl UnwindSafe for Modifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.