Struct euphony_core::pitch::mode::intervals::ModeIntervals [−][src]
pub struct ModeIntervals { pub tones: &'static [Interval], pub steps: &'static [Interval], pub intervals: &'static [Interval], }
Fields
tones: &'static [Interval]
steps: &'static [Interval]
intervals: &'static [Interval]
Implementations
impl ModeIntervals
[src]
impl ModeIntervals
[src]pub const fn len(&self) -> usize
[src]
pub const fn is_empty(&self) -> bool
[src]
pub fn collapse(
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Interval
[src]
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Interval
pub fn checked_collapse(
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Option<Interval>
[src]
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Option<Interval>
pub fn expand(
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Interval
[src]
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Interval
pub fn checked_expand(
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Option<Interval>
[src]
&self,
interval: Interval,
rounding_strategy: RoundingStrategy
) -> Option<Interval>
Trait Implementations
impl Clone for ModeIntervals
[src]
impl Clone for ModeIntervals
[src]fn clone(&self) -> ModeIntervals
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ModeIntervals
[src]
impl Copy for ModeIntervals
[src]impl Div<ModeIntervals> for Interval
[src]
impl Div<ModeIntervals> for Interval
[src]impl Eq for ModeIntervals
[src]
impl Eq for ModeIntervals
[src]impl Hash for ModeIntervals
[src]
impl Hash for ModeIntervals
[src]impl Mul<Interval> for ModeIntervals
[src]
impl Mul<Interval> for ModeIntervals
[src]impl Ord for ModeIntervals
[src]
impl Ord for ModeIntervals
[src]impl PartialEq<ModeIntervals> for ModeIntervals
[src]
impl PartialEq<ModeIntervals> for ModeIntervals
[src]fn eq(&self, other: &ModeIntervals) -> bool
[src]
fn ne(&self, other: &ModeIntervals) -> bool
[src]
impl PartialOrd<ModeIntervals> for ModeIntervals
[src]
impl PartialOrd<ModeIntervals> for ModeIntervals
[src]fn partial_cmp(&self, other: &ModeIntervals) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for ModeIntervals
[src]
impl StructuralEq for ModeIntervals
[src]impl StructuralPartialEq for ModeIntervals
[src]
impl StructuralPartialEq for ModeIntervals
[src]Auto Trait Implementations
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]
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.