pub struct ChordDegree {
pub value: u8,
pub alter: i8,
pub kind: String,
}Expand description
One structured MusicXML chord degree.
Fields§
§value: u8Scale degree number (normally 1 through 13).
alter: i8Semitone alteration relative to the diatonic degree.
kind: StringMusicXML degree type, such as add, alter, or subtract.
Implementations§
Source§impl ChordDegree
impl ChordDegree
Sourcepub fn display_text(&self) -> String
pub fn display_text(&self) -> String
Render the degree using the compact chord-label convention.
Trait Implementations§
Source§impl Clone for ChordDegree
impl Clone for ChordDegree
Source§fn clone(&self) -> ChordDegree
fn clone(&self) -> ChordDegree
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 moreSource§impl Debug for ChordDegree
impl Debug for ChordDegree
Source§impl<'de> Deserialize<'de> for ChordDegree
impl<'de> Deserialize<'de> for ChordDegree
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
impl Eq for ChordDegree
Source§impl PartialEq for ChordDegree
impl PartialEq for ChordDegree
Source§impl Serialize for ChordDegree
impl Serialize for ChordDegree
impl StructuralPartialEq for ChordDegree
Auto Trait Implementations§
impl Freeze for ChordDegree
impl RefUnwindSafe for ChordDegree
impl Send for ChordDegree
impl Sync for ChordDegree
impl Unpin for ChordDegree
impl UnsafeUnpin for ChordDegree
impl UnwindSafe for ChordDegree
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