#[repr(u8)]pub enum Extension {
Sus2 = 0,
Sus4 = 1,
Flat11 = 2,
Sharp13 = 3,
Add2 = 4,
Add4 = 5,
Add6 = 6,
Add9 = 7,
Add11 = 8,
Add13 = 9,
}Expand description
An enum representing the extension of a chord.
Extensions are not really “special” in the sense that they do not change how the
chord is interpreted by the system. E.g., an add2 just adds a 2 to the chord,
and the chord is still interpreted as a major chord.
Variants§
Sus2 = 0
Sus2 extension.
Sus4 = 1
Sus4 extension.
Flat11 = 2
Flat 11 extension.
Sharp13 = 3
Sharp 13 extension.
Add2 = 4
Add2 extension.
Add4 = 5
Add4 extension.
Add6 = 6
Add6 extension.
Add9 = 7
Add9 extension.
Add11 = 8
Add11 extension.
Add13 = 9
Add13 extension.
Trait Implementations§
impl Copy for Extension
Source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
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 Extension
Source§impl HasStaticName for Extension
impl HasStaticName for Extension
Source§fn static_name(&self) -> &'static str
fn static_name(&self) -> &'static str
Returns the static name of the type.
Source§impl Ord for Extension
impl Ord for Extension
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 Extension
impl PartialOrd for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnsafeUnpin for Extension
impl UnwindSafe for Extension
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.