Struct y4m::Ratio
[−]
[src]
pub struct Ratio { pub num: usize, pub den: usize, }
Simple ratio structure since stdlib lacks one.
Fields
num: usize
Numerator.
den: usize
Denominator.
Methods
impl Ratio
[src]
Trait Implementations
impl Debug for Ratio
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Ratio
[src]
fn clone(&self) -> Ratio
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more