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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TcOperation
Source§impl Debug for TcOperation
impl Debug for TcOperation
Source§impl Display for TcOperation
impl Display for TcOperation
impl Eq for TcOperation
Source§impl PartialEq for TcOperation
impl PartialEq for TcOperation
Source§fn eq(&self, other: &TcOperation) -> bool
fn eq(&self, other: &TcOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.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