pub enum TimedEventKind {
Note(NoteEvent),
Chord(ChordEvent),
Rest(RestEvent),
Spacer,
Barline(MeasureBarline),
RepeatEnding(RepeatEndingModel),
RepeatEndingClose(RepeatEndingCloseModel),
KeyChange(KeySignatureModel),
MeterChange(MeterModel),
ClefChange(ClefChangeModel),
TempoChange(TempoModel),
SectionLabel(String),
}Variants§
Note(NoteEvent)
Chord(ChordEvent)
Rest(RestEvent)
Spacer
Barline(MeasureBarline)
RepeatEnding(RepeatEndingModel)
RepeatEndingClose(RepeatEndingCloseModel)
KeyChange(KeySignatureModel)
A mid-tune key change ([K:..] or a body K: line). Zero duration;
the new key’s alters are already baked into later pitches — the event
records WHERE the change was written so exporters can reproduce it.
MeterChange(MeterModel)
A mid-tune meter change ([M:..] or a body M: line). Zero duration.
ClefChange(ClefChangeModel)
A mid-tune clef change carried by [K:..] or a body K: line. Zero
duration; following pitches are already lowered with the new voice
octave shift.
TempoChange(TempoModel)
A mid-tune tempo change ([Q:..] or a body Q: line). Zero duration.
SectionLabel(String)
A body/inline P: section label (ABC 2.1 §4.3), e.g. P:A or [P:B].
Zero duration; emitted as a MusicXML <rehearsal>. The header P:ABAB
play-order macro is a different construct and never produces this.
Trait Implementations§
Source§impl Clone for TimedEventKind
impl Clone for TimedEventKind
Source§impl Debug for TimedEventKind
impl Debug for TimedEventKind
impl Eq for TimedEventKind
Source§impl PartialEq for TimedEventKind
impl PartialEq for TimedEventKind
impl StructuralPartialEq for TimedEventKind
Auto Trait Implementations§
impl Freeze for TimedEventKind
impl RefUnwindSafe for TimedEventKind
impl Send for TimedEventKind
impl Sync for TimedEventKind
impl Unpin for TimedEventKind
impl UnsafeUnpin for TimedEventKind
impl UnwindSafe for TimedEventKind
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