pub enum ReferentialEvidence {
Chord {
label: String,
chord: ChordTemplate,
},
Scale {
label: String,
scale: Scale,
},
KeyRegion {
label: String,
key: Key,
preferred_root: Option<PitchClass>,
},
PitchRatio {
label: String,
ratios: Vec<PitchRatio>,
policy: RatioPolicy,
},
Mask {
label: String,
mask: PitchClassMask,
},
}Expand description
Supported named evidence for one referential subset.
Variants§
Chord
A named chord-template target.
Fields
§
chord: ChordTemplateExact chord template used to name the subset.
Scale
A named scale target.
Fields
KeyRegion
A named key-region target with optional preferred root for labeling.
Fields
§
preferred_root: Option<PitchClass>Preferred root used when the subset needs an explicit harmonic root.
PitchRatio
Exact ratio evidence for the subset’s voices.
Fields
§
ratios: Vec<PitchRatio>Exact root-relative ratios attached to the subset.
§
policy: RatioPolicyCanonicalization policy used while evaluating the ratios.
Mask
Caller-declared mask evidence.
Fields
§
mask: PitchClassMaskExact unordered pitch-class evidence supplied by the caller.
Implementations§
Trait Implementations§
Source§impl Clone for ReferentialEvidence
impl Clone for ReferentialEvidence
Source§fn clone(&self) -> ReferentialEvidence
fn clone(&self) -> ReferentialEvidence
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 ReferentialEvidence
impl Debug for ReferentialEvidence
impl Eq for ReferentialEvidence
Source§impl PartialEq for ReferentialEvidence
impl PartialEq for ReferentialEvidence
impl StructuralPartialEq for ReferentialEvidence
Auto Trait Implementations§
impl Freeze for ReferentialEvidence
impl RefUnwindSafe for ReferentialEvidence
impl Send for ReferentialEvidence
impl Sync for ReferentialEvidence
impl Unpin for ReferentialEvidence
impl UnsafeUnpin for ReferentialEvidence
impl UnwindSafe for ReferentialEvidence
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