#[repr(i8)]pub enum Accidental {
Natural = 0,
Sharp = 2,
Flat = -2,
MicroSharp = 1,
MicroFlat = -1,
}Expand description
An accidental, represented by an i8 value that corresponds to the offset in quarter tones.
Variants§
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 From<Accidental> for f32
impl From<Accidental> for f32
Source§fn from(acc: Accidental) -> f32
fn from(acc: Accidental) -> f32
Converts to this type from the input type.
impl Copy 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