pub enum Key {
Natural(PitchName),
Sharp(PitchName),
Flat(PitchName),
}Variants§
Implementations§
Source§impl Key
impl Key
pub const C: Self
pub const D: Self
pub const E: Self
pub const F: Self
pub const G: Self
pub const A: Self
pub const B: Self
pub const C_SHARP: Self
pub const D_SHARP: Self
pub const E_SHARP: Self
pub const F_SHARP: Self
pub const G_SHARP: Self
pub const A_SHARP: Self
pub const D_FLAT: Self
pub const E_FLAT: Self
pub const G_FLAT: Self
pub const A_FLAT: Self
pub const B_FLAT: Self
pub const ALL: [Key; 18]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
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 Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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