pub struct ChordLabel {
pub address: NoteAddr,
pub chord: ChordSymbol,
pub name: String,
pub roman_numeral: Option<String>,
pub confidence: u8,
pub rule_id: String,
pub evidence: Vec<NoteAddr>,
}Expand description
A chord label with source evidence and the rule that produced it.
Fields§
§address: NoteAddr§chord: ChordSymbol§name: StringCanonical human-readable spelling derived from chord.
roman_numeral: Option<String>§confidence: u8§rule_id: String§evidence: Vec<NoteAddr>Trait Implementations§
Source§impl Clone for ChordLabel
impl Clone for ChordLabel
Source§fn clone(&self) -> ChordLabel
fn clone(&self) -> ChordLabel
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 ChordLabel
impl Debug for ChordLabel
Source§impl<'de> Deserialize<'de> for ChordLabel
impl<'de> Deserialize<'de> for ChordLabel
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 ChordLabel
impl PartialEq for ChordLabel
Source§impl Serialize for ChordLabel
impl Serialize for ChordLabel
impl StructuralPartialEq for ChordLabel
Auto Trait Implementations§
impl Freeze for ChordLabel
impl RefUnwindSafe for ChordLabel
impl Send for ChordLabel
impl Sync for ChordLabel
impl Unpin for ChordLabel
impl UnsafeUnpin for ChordLabel
impl UnwindSafe for ChordLabel
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