Struct clef::Pitch [−][src]
Implementations
impl Pitch
[src]
pub fn new(name: NoteName, octave: i32) -> Pitch
[src]
pub fn new_with_accidental(
name: NoteName,
accidental: Accidental,
octave: i32
) -> Pitch
[src]
name: NoteName,
accidental: Accidental,
octave: i32
) -> Pitch
pub fn name(&self) -> NoteName
[src]
pub fn octave(&self) -> i32
[src]
pub fn accidental(&self) -> Accidental
[src]
Trait Implementations
impl Clone for Pitch
[src]
impl Copy for Pitch
[src]
impl Debug for Pitch
[src]
impl Eq for Pitch
[src]
impl PartialEq<Pitch> for Pitch
[src]
impl StructuralEq for Pitch
[src]
impl StructuralPartialEq for Pitch
[src]
impl Sub<Pitch> for Pitch
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pitch
impl Send for Pitch
impl Sync for Pitch
impl Unpin for Pitch
impl UnwindSafe for Pitch
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,