pub struct BitChord {
pub mask: PitchClassMask,
pub root: Option<PitchClass>,
}Expand description
A chord represented as a PitchClassMask with an optional designated root.
When root is None the chord is rootless and can be reduced to its
transposition-invariant normal form via BitChord::canonical.
Fields§
§mask: PitchClassMaskThe pitch classes that make up the chord.
root: Option<PitchClass>The chord root, or None for a rootless chord.
Implementations§
Trait Implementations§
impl Copy for BitChord
impl Eq for BitChord
impl StructuralPartialEq for BitChord
Auto Trait Implementations§
impl Freeze for BitChord
impl RefUnwindSafe for BitChord
impl Send for BitChord
impl Sync for BitChord
impl Unpin for BitChord
impl UnsafeUnpin for BitChord
impl UnwindSafe for BitChord
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