Struct persichetti::primitives::CompoundInterval [−][src]
pub struct CompoundInterval { /* fields omitted */ }
A compound interval represents an Interval
that may span more than one octave.
Implementations
impl CompoundInterval
[src]
impl CompoundInterval
[src]pub fn new(
size: IntervalSize,
quality: IntervalQuality,
compound_octaves: usize
) -> Result<Self, IntervalError>
[src]
size: IntervalSize,
quality: IntervalQuality,
compound_octaves: usize
) -> Result<Self, IntervalError>
pub fn from_interval(interval: Interval, compound_octaves: usize) -> Self
[src]
pub fn from_str(input: &str) -> Result<Self, IntervalError>
[src]
pub fn from_str(input: &str) -> Result<Self, IntervalError>
[src]Instantiate using the same shorthand as a normal Interval
documented in crate::primitives
, but
using an additional octave indicator.
pub fn interval(&self) -> &Interval
[src]
pub fn compound_octaves(&self) -> usize
[src]
Trait Implementations
impl Clone for CompoundInterval
[src]
impl Clone for CompoundInterval
[src]fn clone(&self) -> CompoundInterval
[src]
fn clone(&self) -> CompoundInterval
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CompoundInterval
[src]
impl Debug for CompoundInterval
[src]impl Display for CompoundInterval
[src]
impl Display for CompoundInterval
[src]impl Hash for CompoundInterval
[src]
impl Hash for CompoundInterval
[src]impl PartialEq<CompoundInterval> for CompoundInterval
[src]
impl PartialEq<CompoundInterval> for CompoundInterval
[src]fn eq(&self, other: &CompoundInterval) -> bool
[src]
fn eq(&self, other: &CompoundInterval) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &CompoundInterval) -> bool
[src]
fn ne(&self, other: &CompoundInterval) -> bool
[src]This method tests for !=
.
impl Eq for CompoundInterval
[src]
impl StructuralEq for CompoundInterval
[src]
impl StructuralPartialEq for CompoundInterval
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompoundInterval
impl Send for CompoundInterval
impl Sync for CompoundInterval
impl Unpin for CompoundInterval
impl UnwindSafe for CompoundInterval
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