#[repr(u8)]pub enum Extension {
Sus2 = 0,
Sus4 = 1,
Flat11 = 2,
Flat13 = 3,
Sharp13 = 4,
Add2 = 5,
Add4 = 6,
Add6 = 7,
Add9 = 8,
Add11 = 9,
Add13 = 10,
}
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.
Flat13 = 3
Flat 13 extension.
Sharp13 = 4
Sharp 13 extension.
Add2 = 5
Add2 extension.
Add4 = 6
Add4 extension.
Add6 = 7
Add6 extension.
Add9 = 8
Add9 extension.
Add11 = 9
Add11 extension.
Add13 = 10
Add13 extension.
Trait Implementations§
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
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
source§impl PartialEq for Extension
impl PartialEq for Extension
source§impl PartialOrd for Extension
impl PartialOrd for Extension
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Extension
impl Eq for Extension
impl StructuralEq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more