pub enum ScaleCandidate {
Mode {
kind: ModeKind,
rank: u8,
reason: &'static str,
},
Scale {
kind: ScaleKind,
rank: u8,
reason: &'static str,
},
}Expand description
Represents a recommended scale or mode for a chord.
Variants§
Implementations§
Source§impl ScaleCandidate
impl ScaleCandidate
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns the description of this candidate
Trait Implementations§
Source§impl Clone for ScaleCandidate
impl Clone for ScaleCandidate
Source§fn clone(&self) -> ScaleCandidate
fn clone(&self) -> ScaleCandidate
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 ScaleCandidate
impl Debug for ScaleCandidate
Source§impl Deserialize<'static> for ScaleCandidate
impl Deserialize<'static> for ScaleCandidate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScaleCandidate
impl PartialEq for ScaleCandidate
Source§impl Serialize for ScaleCandidate
impl Serialize for ScaleCandidate
impl StructuralPartialEq for ScaleCandidate
Auto Trait Implementations§
impl Freeze for ScaleCandidate
impl RefUnwindSafe for ScaleCandidate
impl Send for ScaleCandidate
impl Sync for ScaleCandidate
impl Unpin for ScaleCandidate
impl UnsafeUnpin for ScaleCandidate
impl UnwindSafe for ScaleCandidate
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