Struct y4m::Ratio [−][src]
Simple ratio structure since stdlib lacks one.
Fields
num: usize
Numerator.
den: usize
Denominator.
Methods
impl Ratio[src]
impl RatioTrait Implementations
impl Debug for Ratio[src]
impl Debug for Ratiofn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Ratio[src]
impl Clone for Ratiofn clone(&self) -> Ratio[src]
fn clone(&self) -> RatioReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Ratio[src]
impl Copy for Ratioimpl Display for Ratio[src]
impl Display for Ratio