pub struct TimecodeTrack { /* private fields */ }Expand description
Timecode track in a container.
Implementations§
Source§impl TimecodeTrack
impl TimecodeTrack
Sourcepub const fn new(format: TimecodeFormat, start_timecode: Timecode) -> Self
pub const fn new(format: TimecodeFormat, start_timecode: Timecode) -> Self
Creates a new timecode track.
Sourcepub fn add_timecode(&mut self, sample_number: u64, timecode: Timecode)
pub fn add_timecode(&mut self, sample_number: u64, timecode: Timecode)
Adds a timecode at a specific sample.
Sourcepub fn get_timecode(&self, sample_number: u64) -> Option<&Timecode>
pub fn get_timecode(&self, sample_number: u64) -> Option<&Timecode>
Gets the timecode at a specific sample.
Sourcepub const fn start_timecode(&self) -> &Timecode
pub const fn start_timecode(&self) -> &Timecode
Returns the start timecode.
Sourcepub const fn format(&self) -> TimecodeFormat
pub const fn format(&self) -> TimecodeFormat
Returns the format.
Trait Implementations§
Source§impl Clone for TimecodeTrack
impl Clone for TimecodeTrack
Source§fn clone(&self) -> TimecodeTrack
fn clone(&self) -> TimecodeTrack
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TimecodeTrack
impl RefUnwindSafe for TimecodeTrack
impl Send for TimecodeTrack
impl Sync for TimecodeTrack
impl Unpin for TimecodeTrack
impl UnsafeUnpin for TimecodeTrack
impl UnwindSafe for TimecodeTrack
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