Struct y4m::Ratio [] [src]

pub struct Ratio {
    pub num: usize,
    pub den: usize,
}

Simple ratio structure since stdlib lacks one.

Fields

Numerator.

Denominator.

Methods

impl Ratio
[src]

[src]

Create a new ratio.

Trait Implementations

impl Debug for Ratio
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Ratio
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Ratio
[src]

impl Display for Ratio
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Ratio

impl Sync for Ratio