Enum vtc::FramerateParseError
source · pub enum FramerateParseError {
Ntsc(String),
DropFrame(String),
Negative(String),
Imprecise(String),
Conversion(String),
}
Expand description
Returned from Framerate::with_timebase and Framerate::with_playback when there is an error parsing a Framerate.
Variants§
Ntsc(String)
Returned when a bad NTSC playback or timebase rate is given.
DropFrame(String)
Returned when a bad Drop-frame playback or timebase rate is given.
Negative(String)
Returned when a negative value is attempted to be converted to a Framerate.
Imprecise(String)
Returned when a value is not precise enough to be cast to a non-ntsc value, such as floating-point values.
NTSC values have known denominators they must adhere to, and therefore can be coerced from imprecise values. No such coercion can be done for non-NTSC values.
Conversion(String)
Returned when there is an error doing an internal type conversion to create a new Framerate, such as a u64 value overflowing a num::Rational64.
Trait Implementations§
source§impl Clone for FramerateParseError
impl Clone for FramerateParseError
source§fn clone(&self) -> FramerateParseError
fn clone(&self) -> FramerateParseError
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 FramerateParseError
impl Debug for FramerateParseError
source§impl PartialEq<FramerateParseError> for FramerateParseError
impl PartialEq<FramerateParseError> for FramerateParseError
source§fn eq(&self, other: &FramerateParseError) -> bool
fn eq(&self, other: &FramerateParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FramerateParseError
impl StructuralEq for FramerateParseError
impl StructuralPartialEq for FramerateParseError
Auto Trait Implementations§
impl RefUnwindSafe for FramerateParseError
impl Send for FramerateParseError
impl Sync for FramerateParseError
impl Unpin for FramerateParseError
impl UnwindSafe for FramerateParseError
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