#[repr(i8)]pub enum Seventh {
Diminished = 9,
Minor = 10,
Major = 11,
Augmented = 12,
}Variants§
Implementations§
Source§impl Seventh
impl Seventh
Sourcepub const fn is_diminished(&self) -> bool
pub const fn is_diminished(&self) -> bool
Returns true if the enum is Seventh::Diminished otherwise false
Sourcepub const fn is_minor(&self) -> bool
pub const fn is_minor(&self) -> bool
Returns true if the enum is Seventh::Minor otherwise false
Sourcepub const fn is_major(&self) -> bool
pub const fn is_major(&self) -> bool
Returns true if the enum is Seventh::Major otherwise false
Sourcepub const fn is_augmented(&self) -> bool
pub const fn is_augmented(&self) -> bool
Returns true if the enum is Seventh::Augmented otherwise false
Source§impl Seventh
impl Seventh
pub fn new(src: Note, tgt: Note) -> Result<Self, Error>
pub fn from_i8(value: i8) -> Result<Self, Error>
pub fn into_interval(self) -> Intervals
pub fn interval(&self) -> Intervals
pub fn get(&self) -> i8
pub fn value(&self) -> i8
pub fn validate(value: i8) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Seventh
impl<'de> Deserialize<'de> for Seventh
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
Source§impl IntervalKind for Seventh
impl IntervalKind for Seventh
Source§impl Ord for Seventh
impl Ord for Seventh
Source§impl PartialOrd for Seventh
impl PartialOrd for Seventh
Source§impl VariantNames for Seventh
impl VariantNames for Seventh
impl Copy for Seventh
impl Eq for Seventh
impl StructuralPartialEq for Seventh
Auto Trait Implementations§
impl Freeze for Seventh
impl RefUnwindSafe for Seventh
impl Send for Seventh
impl Sync for Seventh
impl Unpin for Seventh
impl UnwindSafe for Seventh
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