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§
Trait Implementations§
Source§impl<Q, T: Clone> Clone for IntervalBase<Q, T>where
Q: RawQuality + Clone,
impl<Q, T: Clone> Clone for IntervalBase<Q, T>where
Q: RawQuality + Clone,
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> Default for IntervalBase<Q, T>where
Q: RawQuality + Default,
impl<Q, T: Default> Default for IntervalBase<Q, T>where
Q: RawQuality + Default,
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> Hash for IntervalBase<Q, T>where
Q: RawQuality + Hash,
impl<Q, T: Hash> Hash for IntervalBase<Q, T>where
Q: RawQuality + Hash,
Source§impl<Q, T: Ord> Ord for IntervalBase<Q, T>where
Q: RawQuality + Ord,
impl<Q, T: Ord> Ord for IntervalBase<Q, T>where
Q: RawQuality + Ord,
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> PartialEq for IntervalBase<Q, T>where
Q: RawQuality + PartialEq,
impl<Q, T: PartialEq> PartialEq for IntervalBase<Q, T>where
Q: RawQuality + PartialEq,
Source§impl<Q, T: PartialOrd> PartialOrd for IntervalBase<Q, T>where
Q: RawQuality + PartialOrd,
impl<Q, T: PartialOrd> PartialOrd for IntervalBase<Q, T>where
Q: RawQuality + PartialOrd,
impl<Q, T: Copy> Copy for IntervalBase<Q, T>where
Q: RawQuality + Copy,
impl<Q, T: Eq> Eq for IntervalBase<Q, T>where
Q: RawQuality + Eq,
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> 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