pub struct Timecode {
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
pub frame: u8,
pub drop_frame: bool,
pub color_frame: bool,
/* private fields */
}Fields
hours: u8minutes: u8seconds: u8frame: u8drop_frame: boolcolor_frame: boolImplementations
sourceimpl Timecode
impl Timecode
pub fn frame_rate(&self) -> &FrameRate
pub fn parse_smpte_331m(data: &[u8], frame_rate: FrameRate) -> Option<Self>
pub fn parse_smpte_12m(data: &[u8], frame_rate: FrameRate) -> Option<Self>
pub fn from_ebu_smpte_time_and_control(
data: &[u8; 4],
frame_rate: FrameRate
) -> Timecode
Trait Implementations
impl StructuralPartialEq for Timecode
Auto Trait Implementations
impl RefUnwindSafe for Timecode
impl Send for Timecode
impl Sync for Timecode
impl Unpin for Timecode
impl UnwindSafe for Timecode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more