Struct midi_msg::StandardTimeCode [−][src]
Like TimeCode
but uses subframes
to optionally include status flags, and fractional frames.
Also may be negative. Used in MachineControlCommandMsg
.
As defined in MIDI Machine Control 1.0 (MMA0016 / RP013) and MIDI Show Control 1.1.1 (RP002/RP014)
Fields
subframes: SubFrames
frames: i8
The position in frames, where a negative value indicates a negative TimeCode, -29-29
seconds: u8
The position in seconds, 0-59
minutes: u8
The position in minutes, 0-59
hours: u8
The position in hours, 0-23
code_type: TimeCodeType
Implementations
impl StandardTimeCode
[src]
pub fn to_bytes(self) -> [u8; 5]
[src]
Return the five byte representation of the frame: [fractional_frames, frames, seconds, minutes, timecode + hours]
pub fn to_bytes_short(self) -> [u8; 2]
[src]
The two byte representation of the frame: [fractional_frames, frames]
Trait Implementations
impl Clone for StandardTimeCode
[src]
fn clone(&self) -> StandardTimeCode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StandardTimeCode
[src]
impl Debug for StandardTimeCode
[src]
impl Default for StandardTimeCode
[src]
fn default() -> StandardTimeCode
[src]
impl From<TimeCode> for StandardTimeCode
[src]
impl PartialEq<StandardTimeCode> for StandardTimeCode
[src]
fn eq(&self, other: &StandardTimeCode) -> bool
[src]
fn ne(&self, other: &StandardTimeCode) -> bool
[src]
impl StructuralPartialEq for StandardTimeCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for StandardTimeCode
impl Send for StandardTimeCode
impl Sync for StandardTimeCode
impl Unpin for StandardTimeCode
impl UnwindSafe for StandardTimeCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,