#[repr(i8)]pub enum Pitches {
Flat(Flat),
Natural(Natural),
Sharp(Sharp),
}Variants§
Implementations§
Source§impl Pitches
impl Pitches
Sourcepub const fn is_natural(&self) -> bool
pub const fn is_natural(&self) -> bool
Returns true if the enum is Pitches::Natural otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pitches
impl<'de> Deserialize<'de> for Pitches
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 Ord for Pitches
impl Ord for Pitches
Source§impl PartialOrd for Pitches
impl PartialOrd for Pitches
Source§impl VariantNames for Pitches
impl VariantNames for Pitches
impl Copy for Pitches
impl Eq for Pitches
impl StructuralPartialEq for Pitches
Auto Trait Implementations§
impl Freeze for Pitches
impl RefUnwindSafe for Pitches
impl Send for Pitches
impl Sync for Pitches
impl Unpin for Pitches
impl UnwindSafe for Pitches
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