Enum music_theory::theory::chord::MStyle
source · #[repr(usize)]pub enum MStyle {
Long = 0,
Short = 1,
Symbol = 2,
}
Expand description
The formatting style of the main base chord quality
Example:
use music_theory::theory::*;
assert_eq!(MStyle::default(), MStyle::Symbol);
Variants§
Long = 0
Use long qualities such as “maj”, “min”, “aug”
Short = 1
Use short qualities such as “M”, “m”, “aug”
Symbol = 2
Use symbols such as “Δ”, “-”, “+”
Trait Implementations§
source§impl Ord for MStyle
impl Ord for MStyle
source§impl PartialEq for MStyle
impl PartialEq for MStyle
source§impl PartialOrd for MStyle
impl PartialOrd for MStyle
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 MStyle
impl Eq for MStyle
impl StructuralPartialEq for MStyle
Auto Trait Implementations§
impl Freeze for MStyle
impl RefUnwindSafe for MStyle
impl Send for MStyle
impl Sync for MStyle
impl Unpin for MStyle
impl UnwindSafe for MStyle
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