#[repr(u8)]pub enum Octave {
Show 16 variants
Zero = 0,
One = 1,
Two = 2,
Three = 3,
Four = 4,
Five = 5,
Six = 6,
Seven = 7,
Eight = 8,
Nine = 9,
Ten = 10,
Eleven = 11,
Twelve = 12,
Thirteen = 13,
Fourteen = 14,
Fifteen = 15,
}Expand description
An enum representing the octave of a note.
Variants§
Zero = 0
The octave 0.
One = 1
The octave 1.
Two = 2
The octave 2.
Three = 3
The octave 3.
Four = 4
The octave 4.
Five = 5
The octave 5.
Six = 6
The octave 6.
Seven = 7
The octave 7.
Eight = 8
The octave 8.
Nine = 9
The octave 9.
Ten = 10
The octave 10.
Eleven = 11
The octave 11.
Twelve = 12
The octave 12.
Thirteen = 13
The octave 13.
Fourteen = 14
The octave 14.
Fifteen = 15
The octave 15.
Trait Implementations§
source§impl AddAssign<i8> for Octave
impl AddAssign<i8> for Octave
source§fn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the
+= operation. Read moresource§impl AddAssign for Octave
impl AddAssign for Octave
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl<'de> Deserialize<'de> for Octave
impl<'de> Deserialize<'de> for Octave
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 HasStaticName for Octave
impl HasStaticName for Octave
source§fn static_name(&self) -> &'static str
fn static_name(&self) -> &'static str
Returns the static name of the type.
source§impl Ord for Octave
impl Ord for Octave
source§impl PartialEq for Octave
impl PartialEq for Octave
source§impl PartialOrd for Octave
impl PartialOrd for Octave
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 SubAssign<i8> for Octave
impl SubAssign<i8> for Octave
source§fn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
Performs the
-= operation. Read moreimpl Copy for Octave
impl Eq for Octave
impl StructuralEq for Octave
impl StructuralPartialEq for Octave
Auto Trait Implementations§
impl RefUnwindSafe for Octave
impl Send for Octave
impl Sync for Octave
impl Unpin for Octave
impl UnwindSafe for Octave
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more