pub enum KeyMode {
Major,
Minor,
}Expand description
Represents the relative interval between notes in musical scale.
Variants§
Major
Represents the following note intervals in semitones, starting from the root note of the corresponding key:
[2, 2, 1, 2, 2, 2, 1]
Minor
Represents the following note intervals in semitones, starting from the root note of the corresponding key:
[2, 1, 2, 2, 2, 1, 2]
Trait Implementations§
impl Copy for KeyMode
impl Eq for KeyMode
Source§impl JsonDeserializer for KeyMode
impl JsonDeserializer for KeyMode
Source§impl JsonSerializer for KeyMode
impl JsonSerializer for KeyMode
fn serialize_json(&self) -> String
impl StructuralPartialEq for KeyMode
Auto Trait Implementations§
impl Freeze for KeyMode
impl RefUnwindSafe for KeyMode
impl Send for KeyMode
impl Sync for KeyMode
impl Unpin for KeyMode
impl UnsafeUnpin for KeyMode
impl UnwindSafe for KeyMode
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