pub struct KeyEstimate {
pub key: KeySignature,
pub covered_pitches: usize,
pub total_pitches: usize,
pub confidence: u8,
pub rule_id: String,
pub evidence: Vec<NoteAddr>,
}Expand description
A deterministic key candidate ranked by diatonic pitch coverage.
Fields§
§key: KeySignature§covered_pitches: usize§total_pitches: usize§confidence: u8§rule_id: String§evidence: Vec<NoteAddr>Trait Implementations§
Source§impl Clone for KeyEstimate
impl Clone for KeyEstimate
Source§fn clone(&self) -> KeyEstimate
fn clone(&self) -> KeyEstimate
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 KeyEstimate
impl Debug for KeyEstimate
Source§impl<'de> Deserialize<'de> for KeyEstimate
impl<'de> Deserialize<'de> for KeyEstimate
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 KeyEstimate
impl PartialEq for KeyEstimate
Source§impl Serialize for KeyEstimate
impl Serialize for KeyEstimate
impl StructuralPartialEq for KeyEstimate
Auto Trait Implementations§
impl Freeze for KeyEstimate
impl RefUnwindSafe for KeyEstimate
impl Send for KeyEstimate
impl Sync for KeyEstimate
impl Unpin for KeyEstimate
impl UnsafeUnpin for KeyEstimate
impl UnwindSafe for KeyEstimate
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