[][src]Struct tiff_encoder::ifd::types::RATIONAL

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

Two LONGs representing, respectively, the numerator and the denominator of a fraction.

Fields

numerator: u32denominator: u32

Methods

impl RATIONAL[src]

pub fn values<T: AsRef<[(u32, u32)]>>(values: T) -> TiffTypeValues<RATIONAL>[src]

Constructs a TiffTypeValues of RATIONALs from a vector of pairs (numerator, denominator). Both must be u32 values.

pub fn single(numerator: u32, denominator: u32) -> TiffTypeValues<RATIONAL>[src]

Constructs a TiffTypeValues consisting of a single RATIONAL from a pair (numerator, denominator). Both values must be u32.

In other words, marks this RATIONAL as the single value of its field.

Trait Implementations

impl TiffType for RATIONAL[src]

impl PartialEq<RATIONAL> for RATIONAL[src]

impl Debug for RATIONAL[src]

Auto Trait Implementations

impl Send for RATIONAL

impl Sync for RATIONAL

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]