#[repr(u8)]
pub enum Extension {
Sus2,
Sus4,
Flat11,
Flat13,
Sharp13,
Add2,
Add4,
Add6,
Add9,
Add11,
Add13,
}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§
Trait Implementations§
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<Extension> for Extension
impl PartialEq<Extension> for Extension
source§impl PartialOrd<Extension> for Extension
impl PartialOrd<Extension> 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 more