pub enum Accidental {
Sharp(AccidentalState),
Flat(AccidentalState),
}
Expand description
Accidental
enumerates the two alternative states a note make take, either sharp or flat
and their respective states, single or double.
Variants§
Sharp(AccidentalState)
Flat(AccidentalState)
Implementations§
Source§impl Accidental
impl Accidental
pub fn sharp(field_0: AccidentalState) -> Self
pub fn flat(field_0: AccidentalState) -> Self
Source§impl Accidental
impl Accidental
Trait Implementations§
Source§impl Clone for Accidental
impl Clone for Accidental
Source§fn clone(&self) -> Accidental
fn clone(&self) -> Accidental
Returns a duplicate 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 Accidental
impl Debug for Accidental
Source§impl<'de> Deserialize<'de> for Accidental
impl<'de> Deserialize<'de> for Accidental
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 Hash for Accidental
impl Hash for Accidental
Source§impl Ord for Accidental
impl Ord for Accidental
Source§fn cmp(&self, other: &Accidental) -> Ordering
fn cmp(&self, other: &Accidental) -> 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 Accidental
impl PartialEq for Accidental
Source§impl PartialOrd for Accidental
impl PartialOrd for Accidental
Source§impl Serialize for Accidental
impl Serialize for Accidental
impl Copy for Accidental
impl Eq for Accidental
impl StructuralPartialEq for Accidental
Auto Trait Implementations§
impl Freeze for Accidental
impl RefUnwindSafe for Accidental
impl Send for Accidental
impl Sync for Accidental
impl Unpin for Accidental
impl UnwindSafe for Accidental
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