Struct midi_msg::HighResTimeCode
source · pub struct HighResTimeCode {
pub fractional_frames: u8,
pub frames: u8,
pub seconds: u8,
pub minutes: u8,
pub hours: u8,
pub code_type: TimeCodeType,
}
Expand description
Like TimeCode
but includes fractional_frames
. Used in TimeCodeCueingSetupMsg
and the SMF Meta
event.
As defined in the MIDI Time Code spec (MMA0001 / RP004 / RP008)
Fields§
§fractional_frames: u8
0-99
frames: u8
0-29
seconds: u8
0-59
minutes: u8
0-59
hours: u8
0-23
code_type: TimeCodeType
Implementations§
Trait Implementations§
source§impl Clone for HighResTimeCode
impl Clone for HighResTimeCode
source§fn clone(&self) -> HighResTimeCode
fn clone(&self) -> HighResTimeCode
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 HighResTimeCode
impl Debug for HighResTimeCode
source§impl Default for HighResTimeCode
impl Default for HighResTimeCode
source§fn default() -> HighResTimeCode
fn default() -> HighResTimeCode
Returns the “default value” for a type. Read more
source§impl PartialEq for HighResTimeCode
impl PartialEq for HighResTimeCode
source§fn eq(&self, other: &HighResTimeCode) -> bool
fn eq(&self, other: &HighResTimeCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HighResTimeCode
impl Eq for HighResTimeCode
impl StructuralPartialEq for HighResTimeCode
Auto Trait Implementations§
impl Freeze for HighResTimeCode
impl RefUnwindSafe for HighResTimeCode
impl Send for HighResTimeCode
impl Sync for HighResTimeCode
impl Unpin for HighResTimeCode
impl UnwindSafe for HighResTimeCode
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