pub struct KnownChordType {
pub cardinality: u8,
pub common_names: Vec<String>,
pub forte_class: String,
pub normal_form: Vec<u8>,
pub interval_class_vector: Vec<u8>,
}Expand description
An unpitched chord type known to the music21-derived chord table.
Fields§
§cardinality: u8Number of distinct pitch classes in the chord type.
common_names: Vec<String>Unpitched common-name aliases in music21 table order.
forte_class: StringForte class for this transposition-normal entry, such as "3-11B".
normal_form: Vec<u8>Transposed normal form pitch classes.
interval_class_vector: Vec<u8>Six-entry interval-class vector.
Trait Implementations§
Source§impl Clone for KnownChordType
impl Clone for KnownChordType
Source§fn clone(&self) -> KnownChordType
fn clone(&self) -> KnownChordType
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 Debug for KnownChordType
impl Debug for KnownChordType
Source§impl<'de> Deserialize<'de> for KnownChordType
impl<'de> Deserialize<'de> for KnownChordType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KnownChordType
impl PartialEq for KnownChordType
Source§impl Serialize for KnownChordType
impl Serialize for KnownChordType
impl StructuralPartialEq for KnownChordType
Auto Trait Implementations§
impl Freeze for KnownChordType
impl RefUnwindSafe for KnownChordType
impl Send for KnownChordType
impl Sync for KnownChordType
impl Unpin for KnownChordType
impl UnsafeUnpin for KnownChordType
impl UnwindSafe for KnownChordType
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