Struct exif::Rational[][src]

pub struct Rational {
    pub num: u32,
    pub denom: u32,

An unsigned rational number, which is a pair of 32-bit unsigned integers.



impl Rational

Converts the value to an f64.

Trait Implementations

impl Copy for Rational

impl Clone for Rational

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Rational

Formats the value using the given formatter. Read more

impl Display for Rational

Formatting parameters other than width are not supported.

impl From<Rational> for f64

Performs the conversion.

impl From<Rational> for f32

Performs the conversion.

Auto Trait Implementations

impl Send for Rational

impl Sync for Rational