pub struct Music21ChordType {
pub kind: &'static str,
pub notation: &'static str,
pub abbreviation: &'static str,
}Expand description
A chord type from music21’s harmony.CHORD_TYPES table.
Fields§
§kind: &'static strmusic21’s kind name, such as "dominant-seventh".
notation: &'static strScale-degree notation, such as "1,3,5,-7".
abbreviation: &'static strmusic21’s first abbreviation for this kind, such as "7".
music21 lists several per kind; this is the first, which is the one it uses when writing a figure.
Trait Implementations§
Source§impl Clone for Music21ChordType
impl Clone for Music21ChordType
Source§fn clone(&self) -> Music21ChordType
fn clone(&self) -> Music21ChordType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Music21ChordType
Source§impl Debug for Music21ChordType
impl Debug for Music21ChordType
impl Eq for Music21ChordType
Source§impl PartialEq for Music21ChordType
impl PartialEq for Music21ChordType
Source§fn eq(&self, other: &Music21ChordType) -> bool
fn eq(&self, other: &Music21ChordType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Music21ChordType
Auto Trait Implementations§
impl Freeze for Music21ChordType
impl RefUnwindSafe for Music21ChordType
impl Send for Music21ChordType
impl Sync for Music21ChordType
impl Unpin for Music21ChordType
impl UnsafeUnpin for Music21ChordType
impl UnwindSafe for Music21ChordType
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