Enum ukebox::interval::Interval [−][src]
pub enum Interval { PerfectUnison, MajorSecond, MinorThird, MajorThird, PerfectFourth, DiminishedFifth, PerfectFifth, AugmentedFifth, DiminishedSeventh, MinorSeventh, MajorSeventh, }
Expand description
An interval is the difference between two notes. https://en.wikipedia.org/wiki/Interval_(music)
Variants
Implementations
impl Interval
[src]
impl Interval
[src]pub fn to_semitones(self) -> Semitones
[src]
pub fn to_semitones(self) -> Semitones
[src]Return the number of semitones that the interval encompasses.
pub fn to_number(self) -> StaffSteps
[src]
pub fn to_number(self) -> StaffSteps
[src]Return the interval’s number. It corresponds to the number of staff positions that the intervall encompasses.
Trait Implementations
impl Copy 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more