#[repr(u8)]pub enum ProvenanceKey {
TrackName = 0,
Tempo = 1,
TimeSignature = 2,
KeySignature = 3,
SequenceNumber = 4,
Copyright = 5,
}Expand description
The kind of provenance a ProvenancePair carries.
Variants§
TrackName = 0
0x03 track name. Value = raw name bytes (SMF text, not guaranteed UTF-8).
Tempo = 1
0x51 tempo, microseconds per quarter note. Value = 4-byte big-endian u32.
TimeSignature = 2
0x58 time signature. Value = [numerator, denominator_pow2, clocks_per_click, thirty_seconds_per_quarter] (4 bytes).
KeySignature = 3
0x59 key signature. Value = [sharps_as_i8_bits, minor_flag] (2 bytes).
SequenceNumber = 4
0x00 sequence number. Value = 2-byte big-endian u16.
Copyright = 5
0x02 copyright notice. Value = raw text bytes.
Trait Implementations§
Source§impl Clone for ProvenanceKey
impl Clone for ProvenanceKey
impl Copy for ProvenanceKey
Source§impl Debug for ProvenanceKey
impl Debug for ProvenanceKey
impl Eq for ProvenanceKey
Source§impl PartialEq for ProvenanceKey
impl PartialEq for ProvenanceKey
impl StructuralPartialEq for ProvenanceKey
Auto Trait Implementations§
impl Freeze for ProvenanceKey
impl RefUnwindSafe for ProvenanceKey
impl Send for ProvenanceKey
impl Sync for ProvenanceKey
impl Unpin for ProvenanceKey
impl UnsafeUnpin for ProvenanceKey
impl UnwindSafe for ProvenanceKey
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