pub struct NonMonotonicEvent {
pub frame_index: usize,
pub prev_tc: Timecode,
pub curr_tc: Timecode,
pub jump_frames: i64,
}Expand description
A single non-monotonic event detected in a timecode sequence.
Fields§
§frame_index: usizeIndex of the timecode in the sequence that caused the event.
prev_tc: TimecodeThe previous timecode (at frame_index - 1).
curr_tc: TimecodeThe current timecode (at frame_index).
jump_frames: i64Signed frame jump: curr_tc.to_frames() - prev_tc.to_frames().
Negative means backwards; very large positive means a forward skip.
Trait Implementations§
Source§impl Clone for NonMonotonicEvent
impl Clone for NonMonotonicEvent
Source§fn clone(&self) -> NonMonotonicEvent
fn clone(&self) -> NonMonotonicEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NonMonotonicEvent
impl Debug for NonMonotonicEvent
impl Eq for NonMonotonicEvent
Source§impl PartialEq for NonMonotonicEvent
impl PartialEq for NonMonotonicEvent
Source§fn eq(&self, other: &NonMonotonicEvent) -> bool
fn eq(&self, other: &NonMonotonicEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NonMonotonicEvent
Auto Trait Implementations§
impl Freeze for NonMonotonicEvent
impl RefUnwindSafe for NonMonotonicEvent
impl Send for NonMonotonicEvent
impl Sync for NonMonotonicEvent
impl Unpin for NonMonotonicEvent
impl UnsafeUnpin for NonMonotonicEvent
impl UnwindSafe for NonMonotonicEvent
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