Struct tiff_encoder::tiff_type::RATIONAL[][src]

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

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

Fields

Methods

impl RATIONAL
[src]

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

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]

The TIFF 16-bit code that identifies the type.

The number of bytes occupied by a single value of this type.

The function that writes this type to a given [EndianFile]. Read more

Auto Trait Implementations

impl Send for RATIONAL

impl Sync for RATIONAL