#[repr(i8)]pub enum Fifth {
Diminished = 6,
Perfect = 7,
Augmented = 8,
}Variants§
Implementations§
Source§impl Fifth
impl Fifth
Sourcepub const fn is_diminished(&self) -> bool
pub const fn is_diminished(&self) -> bool
Returns true if the enum is Fifth::Diminished otherwise false
Sourcepub const fn is_perfect(&self) -> bool
pub const fn is_perfect(&self) -> bool
Returns true if the enum is Fifth::Perfect otherwise false
Sourcepub const fn is_augmented(&self) -> bool
pub const fn is_augmented(&self) -> bool
Returns true if the enum is Fifth::Augmented otherwise false
Source§impl Fifth
impl Fifth
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 Fifth
impl<'de> Deserialize<'de> for Fifth
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 Fifth
impl IntervalKind for Fifth
Source§impl Ord for Fifth
impl Ord for Fifth
Source§impl PartialOrd for Fifth
impl PartialOrd for Fifth
Source§impl VariantNames for Fifth
impl VariantNames for Fifth
impl Copy for Fifth
impl Eq for Fifth
impl StructuralPartialEq for Fifth
Auto Trait Implementations§
impl Freeze for Fifth
impl RefUnwindSafe for Fifth
impl Send for Fifth
impl Sync for Fifth
impl Unpin for Fifth
impl UnwindSafe for Fifth
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