pub struct ScaleSuggestion {
pub scale: Scale,
pub fits_prev: bool,
pub fits_next: bool,
pub reasoning: String,
}Expand description
One suggestion from suggest_scales_for_bracket: a candidate scale
for a lead-line gap between two chords, with which side(s) of the
bracket it fits and a human-readable reasoning string.
Fields§
§scale: Scale§fits_prev: boolTrue iff a previous chord was supplied and every one of its
pitch classes lies in scale.
fits_next: boolTrue iff a next chord was supplied and every one of its
pitch classes lies in scale.
reasoning: StringOne-line explanation of why this scale was suggested, suitable for rendering directly in a UI.
Implementations§
Trait Implementations§
Source§impl Clone for ScaleSuggestion
impl Clone for ScaleSuggestion
Source§impl Debug for ScaleSuggestion
impl Debug for ScaleSuggestion
Source§impl<'de> Deserialize<'de> for ScaleSuggestion
impl<'de> Deserialize<'de> for ScaleSuggestion
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
Auto Trait Implementations§
impl Freeze for ScaleSuggestion
impl RefUnwindSafe for ScaleSuggestion
impl Send for ScaleSuggestion
impl Sync for ScaleSuggestion
impl Unpin for ScaleSuggestion
impl UnsafeUnpin for ScaleSuggestion
impl UnwindSafe for ScaleSuggestion
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