Struct tiff_encoder::tiff_type::SRATIONAL[][src]

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

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

Fields

Methods

impl SRATIONAL
[src]

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

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

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

Trait Implementations

impl TiffType for SRATIONAL
[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 SRATIONAL

impl Sync for SRATIONAL