Struct tiff_encoder::Offsets

source ·
pub struct Offsets<T: Datablock> {
    pub data: Vec<T>,
}
Expand description

A list of LONG values, each pointing to a specific Datablock.

This structure owns the list of Datablocks instead, so the user doesn’t have to deal with the offsets in the file. It is responsible for writing both the offsets and the blocks of data.

Fields§

§data: Vec<T>

Implementations§

Creates a new Offsets instance from a vector of Datablocks.

Creates a new Offsets instance from a single Datablock.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.