pub struct Ratio { /* private fields */ }Expand description
A verbatim AVRational seat.
Its own type rather than a [mediatime::Timebase] because the two
seats it carries — sample_aspect_ratio and framerate — are not
timebases and are not always valid ratios: FFmpeg spells “unknown”
as a zero numerator (sample_aspect_ratio) or as 0/1
(framerate), and a mirror that normalised either would fail its
own parity test. Nothing here reduces, validates or interprets;
the numbers cross unchanged.
Implementations§
Trait Implementations§
impl Copy for Ratio
impl Eq for Ratio
impl StructuralPartialEq for Ratio
Auto Trait Implementations§
impl Freeze for Ratio
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnsafeUnpin for Ratio
impl UnwindSafe for Ratio
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