Struct midi_msg::KeySignature
source · pub struct KeySignature {
pub key: i8,
pub scale: u8,
}Expand description
A key signature occurring in a Standard Midi File.
Fields§
§key: i8Negative for number of flats, positive for number of sharps
scale: u80 for major, 1 for minor
Trait Implementations§
source§impl Clone for KeySignature
impl Clone for KeySignature
source§fn clone(&self) -> KeySignature
fn clone(&self) -> KeySignature
Returns a copy of the value. Read more
1.0.0 · 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 PartialEq for KeySignature
impl PartialEq for KeySignature
source§fn eq(&self, other: &KeySignature) -> bool
fn eq(&self, other: &KeySignature) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for KeySignature
Auto Trait Implementations§
impl RefUnwindSafe for KeySignature
impl Send for KeySignature
impl Sync for KeySignature
impl Unpin 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