pub struct KeySignature { /* private fields */ }Implementations§
Source§impl KeySignature
impl KeySignature
pub fn new(accidental_count: i8, mode: KeyMode) -> Result<Self, KeyError>
pub const fn accidental_count(self) -> KeyAccidentalCount
pub const fn mode(self) -> KeyMode
pub const fn is_sharp_key(self) -> bool
pub const fn is_flat_key(self) -> bool
pub const fn is_natural_key(self) -> bool
Trait Implementations§
Source§impl Clone for KeySignature
impl Clone for KeySignature
Source§fn clone(&self) -> KeySignature
fn clone(&self) -> KeySignature
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 KeySignature
impl Debug for KeySignature
Source§impl Hash for KeySignature
impl Hash for KeySignature
Source§impl PartialEq for KeySignature
impl PartialEq for KeySignature
Source§fn eq(&self, other: &KeySignature) -> bool
fn eq(&self, other: &KeySignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for KeySignature
impl Eq for KeySignature
impl StructuralPartialEq for KeySignature
Auto Trait Implementations§
impl Freeze for KeySignature
impl RefUnwindSafe for KeySignature
impl Send for KeySignature
impl Sync for KeySignature
impl Unpin for KeySignature
impl UnsafeUnpin for KeySignature
impl UnwindSafe for KeySignature
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