Struct rexif::URational [] [src]

pub struct URational {
    pub numerator: u32,
    pub denominator: u32,
}

Encapsulation of the TIFF type that represents an unsigned rational number

Fields

numerator: u32 denominator: u32

Methods

impl URational
[src]

fn value(&self) -> f64

Floating point value (numerator divided by denominator)

Trait Implementations

impl PartialEq for URational
[src]

fn eq(&self, __arg_0: &URational) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &URational) -> bool

This method tests for !=.

impl Clone for URational
[src]

fn clone(&self) -> URational

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for URational
[src]

impl Display for URational
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.