pub struct Key(/* private fields */);
Implementations§
source§impl Key
impl Key
pub const NONE: Key = _
pub const SHARP_1: Key = _
pub const SHARP_2: Key = _
pub const SHARP_3: Key = _
pub const SHARP_4: Key = _
pub const SHARP_5: Key = _
pub const SHARP_6: Key = _
pub const SHARP_7: Key = _
pub const FLAT_1: Key = _
pub const FLAT_2: Key = _
pub const FLAT_3: Key = _
pub const FLAT_4: Key = _
pub const FLAT_5: Key = _
pub const FLAT_6: Key = _
pub const FLAT_7: Key = _
pub const ALL: [Key; 15] = _
pub const SOLFAS: Lazy<HashMap<Key, HashSet<Solfa>>> = _
pub fn offset(self) -> i8
pub fn is_flat(self) -> bool
pub fn is_sharp(self) -> bool
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)