#[non_exhaustive]pub enum IntervalQuality {
Augmented(PhantomData<Augmented>),
Diminished(PhantomData<Diminished>),
Major(PhantomData<Major>),
Minor(PhantomData<Minor>),
Perfect(PhantomData<Perfect>),
}Expand description
This enum provides a more streamlined means of working with the implemented Quality types. Primarily, it provides simple creation routines for otherwise unitializable types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Augmented(PhantomData<Augmented>)
Diminished(PhantomData<Diminished>)
Major(PhantomData<Major>)
Minor(PhantomData<Minor>)
Perfect(PhantomData<Perfect>)
Implementations§
Source§impl IntervalQuality
impl IntervalQuality
Sourcepub const fn is_augmented(&self) -> bool
pub const fn is_augmented(&self) -> bool
Returns true if the enum is IntervalQuality::Augmented otherwise false
Sourcepub const fn is_diminished(&self) -> bool
pub const fn is_diminished(&self) -> bool
Returns true if the enum is IntervalQuality::Diminished otherwise false
Sourcepub const fn is_major(&self) -> bool
pub const fn is_major(&self) -> bool
Returns true if the enum is IntervalQuality::Major otherwise false
Sourcepub const fn is_minor(&self) -> bool
pub const fn is_minor(&self) -> bool
Returns true if the enum is IntervalQuality::Minor otherwise false
Sourcepub const fn is_perfect(&self) -> bool
pub const fn is_perfect(&self) -> bool
Returns true if the enum is IntervalQuality::Perfect otherwise false
Trait Implementations§
Source§impl AsRef<str> for IntervalQuality
impl AsRef<str> for IntervalQuality
Source§impl Clone for IntervalQuality
impl Clone for IntervalQuality
Source§fn clone(&self) -> IntervalQuality
fn clone(&self) -> IntervalQuality
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntervalQuality
impl Debug for IntervalQuality
Source§impl<'de> Deserialize<'de> for IntervalQuality
impl<'de> Deserialize<'de> for IntervalQuality
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 Display for IntervalQuality
impl Display for IntervalQuality
Source§impl FromStr for IntervalQuality
impl FromStr for IntervalQuality
Source§impl Hash for IntervalQuality
impl Hash for IntervalQuality
Source§impl IntoEnumIterator for IntervalQuality
impl IntoEnumIterator for IntervalQuality
type Iterator = IntervalQualityIter
fn iter() -> IntervalQualityIter ⓘ
Source§impl Ord for IntervalQuality
impl Ord for IntervalQuality
Source§fn cmp(&self, other: &IntervalQuality) -> Ordering
fn cmp(&self, other: &IntervalQuality) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IntervalQuality
impl PartialEq for IntervalQuality
Source§impl PartialOrd for IntervalQuality
impl PartialOrd for IntervalQuality
Source§impl Serialize for IntervalQuality
impl Serialize for IntervalQuality
Source§impl TryFrom<&str> for IntervalQuality
impl TryFrom<&str> for IntervalQuality
Source§impl VariantNames for IntervalQuality
impl VariantNames for IntervalQuality
impl Copy for IntervalQuality
impl Eq for IntervalQuality
impl StructuralPartialEq for IntervalQuality
Auto Trait Implementations§
impl Freeze for IntervalQuality
impl RefUnwindSafe for IntervalQuality
impl Send for IntervalQuality
impl Sync for IntervalQuality
impl Unpin for IntervalQuality
impl UnwindSafe for IntervalQuality
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