pub struct ScalePattern { /* private fields */ }Implementations§
Source§impl ScalePattern
impl ScalePattern
pub fn new(steps: impl Into<Vec<u8>>) -> Result<ScalePattern, ScaleError>
pub fn steps(&self) -> &[u8] ⓘ
pub fn tone_count(&self) -> ScaleToneCount
pub fn is_heptatonic(&self) -> bool
pub fn is_pentatonic(&self) -> bool
pub fn is_chromatic(&self) -> bool
Trait Implementations§
Source§impl Clone for ScalePattern
impl Clone for ScalePattern
Source§fn clone(&self) -> ScalePattern
fn clone(&self) -> ScalePattern
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 ScalePattern
impl Debug for ScalePattern
Source§impl PartialEq for ScalePattern
impl PartialEq for ScalePattern
Source§fn eq(&self, other: &ScalePattern) -> bool
fn eq(&self, other: &ScalePattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScalePattern
impl StructuralPartialEq for ScalePattern
Auto Trait Implementations§
impl Freeze for ScalePattern
impl RefUnwindSafe for ScalePattern
impl Send for ScalePattern
impl Sync for ScalePattern
impl Unpin for ScalePattern
impl UnsafeUnpin for ScalePattern
impl UnwindSafe for ScalePattern
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