pub struct Interval { /* private fields */ }
Expand description
Music interval in semitones.
Implementations§
Source§impl Interval
impl Interval
pub const UNISON: Self
pub const MINOR_SECOND: Self
pub const MAJOR_SECOND: Self
pub const MINOR_THIRD: Self
pub const MAJOR_THIRD: Self
pub const PERFECT_FOURTH: Self
pub const TRITONE: Self
pub const PERFECT_FIFTH: Self
pub const MINOR_SIXTH: Self
pub const MAJOR_SIXTH: Self
pub const MINOR_SEVENTH: Self
pub const MAJOR_SEVENTH: Self
pub const THIRTEENTH: Self
pub const fn new(semitones: u8) -> Self
pub const fn semitones(self) -> u8
Trait Implementations§
Source§impl Ord for Interval
impl Ord for Interval
Source§impl PartialOrd for Interval
impl PartialOrd for Interval
impl Copy for Interval
impl Eq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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