pub struct IntervalBase<Q, T = isize>where
Q: RawQuality,{
pub quality: Q,
pub steps: T,
}Fields§
§quality: Qthe quality of the interval
steps: Tthe total number of steps, or semitones, in the interval
Implementations§
Source§impl<Q, T> IntervalBase<Q, T>where
Q: RawQuality,
impl<Q, T> IntervalBase<Q, T>where
Q: RawQuality,
Trait Implementations§
Source§impl<Q, T> Clone for IntervalBase<Q, T>
impl<Q, T> Clone for IntervalBase<Q, T>
Source§fn clone(&self) -> IntervalBase<Q, T>
fn clone(&self) -> IntervalBase<Q, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Q, T> Default for IntervalBase<Q, T>
impl<Q, T> Default for IntervalBase<Q, T>
Source§fn default() -> IntervalBase<Q, T>
fn default() -> IntervalBase<Q, T>
Returns the “default value” for a type. Read more
Source§impl<Q, T> Hash for IntervalBase<Q, T>
impl<Q, T> Hash for IntervalBase<Q, T>
Source§impl<Q, T> Ord for IntervalBase<Q, T>
impl<Q, T> Ord for IntervalBase<Q, T>
Source§fn cmp(&self, other: &IntervalBase<Q, T>) -> Ordering
fn cmp(&self, other: &IntervalBase<Q, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Q, T> PartialEq for IntervalBase<Q, T>
impl<Q, T> PartialEq for IntervalBase<Q, T>
Source§impl<Q, T> PartialOrd for IntervalBase<Q, T>
impl<Q, T> PartialOrd for IntervalBase<Q, T>
impl<Q, T> Copy for IntervalBase<Q, T>
impl<Q, T> Eq for IntervalBase<Q, T>
impl<Q, T> StructuralPartialEq for IntervalBase<Q, T>where
Q: RawQuality,
Auto Trait Implementations§
impl<Q, T> Freeze for IntervalBase<Q, T>
impl<Q, T> RefUnwindSafe for IntervalBase<Q, T>where
Q: RefUnwindSafe,
T: RefUnwindSafe,
impl<Q, T> Send for IntervalBase<Q, T>where
T: Send,
impl<Q, T> Sync for IntervalBase<Q, T>where
T: Sync,
impl<Q, T> Unpin for IntervalBase<Q, T>
impl<Q, T> UnwindSafe for IntervalBase<Q, T>where
Q: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more