pub struct TimecodeValidator { /* private fields */ }Expand description
Timecode validator.
Implementations§
Source§impl TimecodeValidator
impl TimecodeValidator
Sourcepub fn set_validate_continuity(&mut self, enabled: bool)
pub fn set_validate_continuity(&mut self, enabled: bool)
Enable or disable continuity validation.
Sourcepub fn validate_sequence(&mut self, tc: Timecode) -> Result<bool, TimecodeError>
pub fn validate_sequence(&mut self, tc: Timecode) -> Result<bool, TimecodeError>
Validate and check continuity with the previous timecode.
Sourcepub fn discontinuity_count(&self) -> u32
pub fn discontinuity_count(&self) -> u32
Get the number of discontinuities detected.
Sourcepub fn last_timecode(&self) -> Option<&Timecode>
pub fn last_timecode(&self) -> Option<&Timecode>
Get last validated timecode.
Trait Implementations§
Source§impl Clone for TimecodeValidator
impl Clone for TimecodeValidator
Source§fn clone(&self) -> TimecodeValidator
fn clone(&self) -> TimecodeValidator
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 TimecodeValidator
impl RefUnwindSafe for TimecodeValidator
impl Send for TimecodeValidator
impl Sync for TimecodeValidator
impl Unpin for TimecodeValidator
impl UnsafeUnpin for TimecodeValidator
impl UnwindSafe for TimecodeValidator
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