[−][src]Enum pitch_calc::letter::Letter
The letter representation for each step in the 12-tone, equal temperament, chromatic scale.
Variants
Methods
impl Letter
[src]
pub fn is_black_key(self) -> bool
[src]
Returns whether or not the note would be a black key on a standard piano or keyboard.
Trait Implementations
impl Add<Letter> for Letter
[src]
type Output = Letter
The resulting type after applying the +
operator.
fn add(self, rhs: Letter) -> Letter
[src]
impl<T: Int> Add<T> for Letter
[src]
type Output = Letter
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Letter
[src]
impl Clone for Letter
[src]
impl Copy for Letter
[src]
impl Debug for Letter
[src]
impl Eq for Letter
[src]
impl FromPrimitive for Letter
[src]
fn from_i64(n: i64) -> Option<Letter>
[src]
fn from_u64(n: u64) -> Option<Letter>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
[src]
impl Ord for Letter
[src]
fn cmp(&self, other: &Letter) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Letter> for Letter
[src]
impl PartialOrd<Letter> for Letter
[src]
fn partial_cmp(&self, other: &Letter) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rand for Letter
[src]
impl Sub<Letter> for Letter
[src]
type Output = Letter
The resulting type after applying the -
operator.
fn sub(self, rhs: Letter) -> Letter
[src]
impl<T: Int> Sub<T> for Letter
[src]
type Output = Letter
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Letter
[src]
impl ToPrimitive for Letter
[src]
fn to_i64(&self) -> Option<i64>
[src]
fn to_u64(&self) -> Option<u64>
[src]
fn to_isize(&self) -> Option<isize>
[src]
fn to_i8(&self) -> Option<i8>
[src]
fn to_i16(&self) -> Option<i16>
[src]
fn to_i32(&self) -> Option<i32>
[src]
fn to_usize(&self) -> Option<usize>
[src]
fn to_u8(&self) -> Option<u8>
[src]
fn to_u16(&self) -> Option<u16>
[src]
fn to_u32(&self) -> Option<u32>
[src]
fn to_f32(&self) -> Option<f32>
[src]
fn to_f64(&self) -> Option<f64>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Letter
impl Send for Letter
impl Sync for Letter
impl Unpin for Letter
impl UnwindSafe for Letter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,