#[repr(usize)]pub enum Components<T = usize> {
Root(T),
Third(T),
Fifth(T),
}Expand description
A chord factor describes the position of a note within a triad.
The root factor is the first note of the triad, the third factor is the
second note of the triad, and the fifth factor is the third note of the triad.
Variants§
Implementations§
Source§impl<T> Components<T>
impl<T> Components<T>
Trait Implementations§
Source§impl<T> AsRef<str> for Components<T>
impl<T> AsRef<str> for Components<T>
Source§impl<T: Clone> Clone for Components<T>
impl<T: Clone> Clone for Components<T>
Source§fn clone(&self) -> Components<T>
fn clone(&self) -> Components<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<T: Debug> Debug for Components<T>
impl<T: Debug> Debug for Components<T>
Source§impl<T> Display for Components<T>
impl<T> Display for Components<T>
Source§impl<'_enum, T> From<&'_enum Components<T>> for Factors
impl<'_enum, T> From<&'_enum Components<T>> for Factors
Source§fn from(val: &'_enum Components<T>) -> Factors
fn from(val: &'_enum Components<T>) -> Factors
Converts to this type from the input type.
Source§impl<T> From<Components<T>> for Factors
impl<T> From<Components<T>> for Factors
Source§fn from(val: Components<T>) -> Factors
fn from(val: Components<T>) -> Factors
Converts to this type from the input type.
Source§impl<T: Hash> Hash for Components<T>
impl<T: Hash> Hash for Components<T>
Source§impl<T> IntoDiscriminant for Components<T>
impl<T> IntoDiscriminant for Components<T>
Source§type Discriminant = Factors
type Discriminant = Factors
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl<T: Ord> Ord for Components<T>
impl<T: Ord> Ord for Components<T>
Source§fn cmp(&self, other: &Components<T>) -> Ordering
fn cmp(&self, other: &Components<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<T: PartialEq> PartialEq for Components<T>
impl<T: PartialEq> PartialEq for Components<T>
Source§impl<T: PartialOrd> PartialOrd for Components<T>
impl<T: PartialOrd> PartialOrd for Components<T>
Source§impl<T> VariantNames for Components<T>
impl<T> VariantNames for Components<T>
impl<T: Copy> Copy for Components<T>
impl<T: Eq> Eq for Components<T>
impl<T> StructuralPartialEq for Components<T>
Auto Trait Implementations§
impl<T> Freeze for Components<T>where
T: Freeze,
impl<T> RefUnwindSafe for Components<T>where
T: RefUnwindSafe,
impl<T> Send for Components<T>where
T: Send,
impl<T> Sync for Components<T>where
T: Sync,
impl<T> Unpin for Components<T>where
T: Unpin,
impl<T> UnwindSafe for Components<T>where
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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