pub enum TcOperation {
AddFrames(u64),
SubtractFrames(u64),
AddSeconds(u32),
SubtractSeconds(u32),
}Expand description
An arithmetic operation to apply to a timecode.
Variants§
AddFrames(u64)
Add a positive number of frames.
SubtractFrames(u64)
Subtract frames, clamping at zero (no underflow panic).
AddSeconds(u32)
Add whole seconds.
SubtractSeconds(u32)
Subtract whole seconds, clamping at zero.
Trait Implementations§
Source§impl Clone for TcOperation
impl Clone for TcOperation
Source§fn clone(&self) -> TcOperation
fn clone(&self) -> TcOperation
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 moreSource§impl Debug for TcOperation
impl Debug for TcOperation
Source§impl Display for TcOperation
impl Display for TcOperation
Source§impl PartialEq for TcOperation
impl PartialEq for TcOperation
impl Copy for TcOperation
impl Eq for TcOperation
impl StructuralPartialEq for TcOperation
Auto Trait Implementations§
impl Freeze for TcOperation
impl RefUnwindSafe for TcOperation
impl Send for TcOperation
impl Sync for TcOperation
impl Unpin for TcOperation
impl UnsafeUnpin for TcOperation
impl UnwindSafe for TcOperation
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