pub enum NoteName {
Show 35 variants
Abb,
Ab,
A,
As,
Ass,
Bbb,
Bb,
B,
Bs,
Bss,
Cbb,
Cb,
C,
Cs,
Css,
Dbb,
Db,
D,
Ds,
Dss,
Ebb,
Eb,
E,
Es,
Ess,
Fbb,
Fb,
F,
Fs,
Fss,
Gbb,
Gb,
G,
Gs,
Gss,
}Expand description
Musical note name.
Variants§
Abb
Ab
A
As
Ass
Bbb
Bb
B
Bs
Bss
Cbb
Cb
C
Cs
Css
Dbb
Db
D
Ds
Dss
Ebb
Eb
E
Es
Ess
Fbb
Fb
F
Fs
Fss
Gbb
Gb
G
Gs
Gss
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoteName
impl<'de> Deserialize<'de> for NoteName
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NoteName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NoteName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Element for NoteName
impl Element for NoteName
Source§fn wrapped_element(&self) -> Option<&(dyn Element + 'static)>
fn wrapped_element(&self) -> Option<&(dyn Element + 'static)>
None.
Source§impl From<NoteName> for PitchClass
impl From<NoteName> for PitchClass
Source§fn from(value: NoteName) -> PitchClass
fn from(value: NoteName) -> PitchClass
Converts to this type from the input type.
Source§impl PartialEq<NoteName> for PitchClass
impl PartialEq<NoteName> for PitchClass
Source§impl PartialEq<PitchClass> for NoteName
impl PartialEq<PitchClass> for NoteName
Source§fn eq(&self, pitch_class: &PitchClass) -> bool
fn eq(&self, pitch_class: &PitchClass) -> bool
use redact_composer_musical::{NoteName, PitchClass};
assert!(NoteName::C.eq(&PitchClass(0)));Source§impl Serialize for NoteName
impl Serialize for NoteName
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for NoteName
impl Eq for NoteName
impl StructuralPartialEq for NoteName
Auto Trait Implementations§
impl Freeze for NoteName
impl RefUnwindSafe for NoteName
impl Send for NoteName
impl Sync for NoteName
impl Unpin for NoteName
impl UnwindSafe for NoteName
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