#[repr(C)]pub struct AVRational {
pub num: c_int,
pub den: c_int,
}Expand description
Rational number (pair of numerator and denominator).
Fields§
§num: c_int< Numerator
den: c_int< Denominator
Trait Implementations§
Source§impl Clone for AVRational
impl Clone for AVRational
Source§fn clone(&self) -> AVRational
fn clone(&self) -> AVRational
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 AVRational
impl Debug for AVRational
Source§impl Default for AVRational
impl Default for AVRational
Source§fn default() -> AVRational
fn default() -> AVRational
Returns the “default value” for a type. Read more
Source§impl Hash for AVRational
impl Hash for AVRational
Source§impl Ord for AVRational
impl Ord for AVRational
Source§fn cmp(&self, other: &AVRational) -> Ordering
fn cmp(&self, other: &AVRational) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AVRational
impl PartialEq for AVRational
Source§impl PartialOrd for AVRational
impl PartialOrd for AVRational
impl Copy for AVRational
impl Eq for AVRational
impl StructuralPartialEq for AVRational
Auto Trait Implementations§
impl Freeze for AVRational
impl RefUnwindSafe for AVRational
impl Send for AVRational
impl Sync for AVRational
impl Unpin for AVRational
impl UnwindSafe for AVRational
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