pub enum ValidationRule {
HoursInRange,
MinutesInRange,
SecondsInRange,
FramesInRange,
DropFramePositions,
WithinRange,
}Expand description
A single validation rule that can be applied to a timecode.
Variants§
HoursInRange
Hours must be in 0–23.
MinutesInRange
Minutes must be in 0–59.
SecondsInRange
Seconds must be in 0–59.
FramesInRange
Frame count must be in 0–(fps-1).
DropFramePositions
Frames 0 and 1 are illegal at the start of non-tenth minutes (DF only).
WithinRange
Timecode must lie within an explicit allowed range [start, end].
Trait Implementations§
Source§impl Clone for ValidationRule
impl Clone for ValidationRule
Source§fn clone(&self) -> ValidationRule
fn clone(&self) -> ValidationRule
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 ValidationRule
impl Debug for ValidationRule
Source§impl Display for ValidationRule
impl Display for ValidationRule
Source§impl PartialEq for ValidationRule
impl PartialEq for ValidationRule
impl Copy for ValidationRule
impl Eq for ValidationRule
impl StructuralPartialEq for ValidationRule
Auto Trait Implementations§
impl Freeze for ValidationRule
impl RefUnwindSafe for ValidationRule
impl Send for ValidationRule
impl Sync for ValidationRule
impl Unpin for ValidationRule
impl UnsafeUnpin for ValidationRule
impl UnwindSafe for ValidationRule
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