[−][src]Enum ukebox::note::Interval
An interval is the difference between two notes. https://en.wikipedia.org/wiki/Interval_(music)
Variants
Methods
impl Interval
[src]
pub fn to_semitones(self) -> Semitones
[src]
Return the number of semitones that the interval encompasses.
pub fn to_number(self) -> u8
[src]
Return the interval's number. It corresponds to the number of staff positions that the intervall encompasses.
Trait Implementations
impl Add<Interval> for Note
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, interval: Interval) -> Self
[src]
Get the next note when adding interval
to the current note.
impl Clone for Interval
[src]
impl Copy for Interval
[src]
impl Debug for Interval
[src]
impl FromStr for Interval
[src]
Auto Trait Implementations
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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>,