Struct rexif::IRational [] [src]

pub struct IRational {
    pub numerator: i32,
    pub denominator: i32,
}

Encapsulation of the TIFF type that represents a signed rational number

Fields

numerator: i32 denominator: i32

Methods

impl IRational
[src]

fn value(&self) -> f64

Floating point value (numerator divided by denominator)

Trait Implementations

impl PartialEq for IRational
[src]

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

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

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

This method tests for !=.

impl Clone for IRational
[src]

fn clone(&self) -> IRational

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 IRational
[src]

impl Display for IRational
[src]

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

Formats the value using the given formatter.