pub struct ChordInfo {
pub bass: Option<Pitch>,
pub root: Option<Pitch>,
pub third: Option<Pitch>,
pub fifth: Option<Pitch>,
pub seventh: Option<Pitch>,
}Expand description
A chord’s bass, root, third, fifth and seventh, whichever it has: what a resolution is worked out from.
Fields§
§bass: Option<Pitch>The chord’s bass.
root: Option<Pitch>Its root.
third: Option<Pitch>Its third.
fifth: Option<Pitch>Its fifth.
seventh: Option<Pitch>Its seventh.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ChordInfo
Auto Trait Implementations§
impl Freeze for ChordInfo
impl RefUnwindSafe for ChordInfo
impl Send for ChordInfo
impl Sync for ChordInfo
impl Unpin for ChordInfo
impl UnsafeUnpin for ChordInfo
impl UnwindSafe for ChordInfo
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