pub struct Rational(pub i32, pub i32);
Tuple Fields§
§0: i32
§1: i32
Implementations§
Trait Implementations§
Source§impl From<AVRational> for Rational
impl From<AVRational> for Rational
Source§fn from(value: AVRational) -> Rational
fn from(value: AVRational) -> Rational
Converts to this type from the input type.
Source§impl From<Rational> for AVRational
impl From<Rational> for AVRational
Source§fn from(value: Rational) -> AVRational
fn from(value: Rational) -> AVRational
Converts to this type from the input type.
Source§impl PartialOrd for Rational
impl PartialOrd for Rational
impl Copy for Rational
impl Eq for Rational
Auto Trait Implementations§
impl Freeze for Rational
impl RefUnwindSafe for Rational
impl Send for Rational
impl Sync for Rational
impl Unpin for Rational
impl UnwindSafe for Rational
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