Enum vtc::TimecodeParseError
source · pub enum TimecodeParseError {
Conversion(String),
UnknownStrFormat(String),
DropFrameValue(String),
}
Expand description
Returned from Timecode::with_frames, Timecode::with_seconds, and Timecode::with_premiere_ticks when there is an error parsing a Timecode.
Variants§
Conversion(String)
Returned when there is an error doing an internal type conversion to create a new Timecode, such as a u64 value overflowing a num::Rational64.
UnknownStrFormat(String)
Returned when a string does not match any known Timecode format.
DropFrameValue(String)
Returned when a drop-frame tc-string has a frames value that should have been dropped. ex: ‘00:01:00:01’.
Trait Implementations§
source§impl Clone for TimecodeParseError
impl Clone for TimecodeParseError
source§fn clone(&self) -> TimecodeParseError
fn clone(&self) -> TimecodeParseError
Returns a copy 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 TimecodeParseError
impl Debug for TimecodeParseError
source§impl PartialEq<TimecodeParseError> for TimecodeParseError
impl PartialEq<TimecodeParseError> for TimecodeParseError
source§fn eq(&self, other: &TimecodeParseError) -> bool
fn eq(&self, other: &TimecodeParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.