pub struct KeySignature {
pub raw: String,
pub tonic: Option<KeyTonic>,
pub mode: KeyMode,
pub accidentals: Vec<KeyAccidental>,
pub explicit: bool,
pub compact_accidentals_ignored: bool,
pub tonic_trailing_junk_ignored: bool,
pub properties: VoiceProperties,
}Fields§
§raw: String§tonic: Option<KeyTonic>§mode: KeyMode§accidentals: Vec<KeyAccidental>§explicit: bool§compact_accidentals_ignored: bool§tonic_trailing_junk_ignored: boolSet when a valid leading tonic was recovered from a token carrying trailing
non-alphabetic junk (K:Bb,); the junk was discarded (ABC 2.1 §3.1.14). The
lowering stage flags this with abc.field.key.tonic_trailing_junk_ignored.
properties: VoicePropertiesClef/octave/middle/transpose modifiers carried on the K: field
(ABC 2.1 §4.6), e.g. K:C treble+8 or K: Dm octave=1. Empty when the
key field carries only tonic/mode/accidentals.
Trait Implementations§
Source§impl Clone for KeySignature
impl Clone for KeySignature
Source§impl Debug for KeySignature
impl Debug for KeySignature
impl Eq for KeySignature
Source§impl PartialEq for KeySignature
impl PartialEq 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