Enum music_theory::theory::pc::PC
source · #[repr(u32)]pub enum PC {
A = 0,
As = 1,
B = 2,
C = 3,
Cs = 4,
D = 5,
Ds = 6,
E = 7,
F = 8,
Fs = 9,
G = 10,
Gs = 11,
}
Expand description
Pitch Class There are twelve pitchclasses, one for every note in the octave.
Variants§
Implementations§
Trait Implementations§
source§impl Add<ScaleDegree> for PC
impl Add<ScaleDegree> for PC
source§impl AddAssign<ScaleDegree> for PC
impl AddAssign<ScaleDegree> for PC
source§fn add_assign(&mut self, other: ScaleDegree)
fn add_assign(&mut self, other: ScaleDegree)
Performs the
+=
operation. Read moresource§impl AddAssign for PC
impl AddAssign for PC
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl Ord for PC
impl Ord for PC
source§impl PartialOrd for PC
impl PartialOrd for PC
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToEnharmonicNote for PC
impl ToEnharmonicNote for PC
source§fn to_enharmonic_note(self) -> EnharmonicNote
fn to_enharmonic_note(self) -> EnharmonicNote
Take self and return EnharmonicNote.
source§impl ToLetterTry for PC
impl ToLetterTry for PC
impl Copy for PC
impl Eq for PC
impl StructuralPartialEq for PC
Auto Trait Implementations§
impl Freeze for PC
impl RefUnwindSafe for PC
impl Send for PC
impl Sync for PC
impl Unpin for PC
impl UnwindSafe for PC
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