pub struct SimpleInterval { /* private fields */ }Implementations§
Source§impl SimpleInterval
impl SimpleInterval
pub fn new( quality: IntervalQuality, number: u8, semitones: i16, ) -> Result<SimpleInterval, IntervalError>
pub fn perfect_unison() -> SimpleInterval
pub fn minor_second() -> SimpleInterval
pub fn major_second() -> SimpleInterval
pub fn minor_third() -> SimpleInterval
pub fn major_third() -> SimpleInterval
pub fn perfect_fourth() -> SimpleInterval
pub fn tritone() -> SimpleInterval
pub fn perfect_fifth() -> SimpleInterval
pub fn minor_sixth() -> SimpleInterval
pub fn major_sixth() -> SimpleInterval
pub fn minor_seventh() -> SimpleInterval
pub fn major_seventh() -> SimpleInterval
pub fn octave() -> SimpleInterval
pub const fn quality(self) -> IntervalQuality
pub const fn number(self) -> IntervalNumber
pub const fn semitones(self) -> SemitoneDistance
Trait Implementations§
Source§impl Clone for SimpleInterval
impl Clone for SimpleInterval
Source§fn clone(&self) -> SimpleInterval
fn clone(&self) -> SimpleInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleInterval
impl Debug for SimpleInterval
Source§impl Hash for SimpleInterval
impl Hash for SimpleInterval
Source§impl PartialEq for SimpleInterval
impl PartialEq for SimpleInterval
Source§fn eq(&self, other: &SimpleInterval) -> bool
fn eq(&self, other: &SimpleInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimpleInterval
impl Eq for SimpleInterval
impl StructuralPartialEq for SimpleInterval
Auto Trait Implementations§
impl Freeze for SimpleInterval
impl RefUnwindSafe for SimpleInterval
impl Send for SimpleInterval
impl Sync for SimpleInterval
impl Unpin for SimpleInterval
impl UnsafeUnpin for SimpleInterval
impl UnwindSafe for SimpleInterval
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