pub struct FileRanges {
    pub ranges: Vec<(Range<u64>, FileOffset)>,
    pub id: u32,
}
Expand description

FileRanges contain a Vec<(Range, FileOffset)>. Each range is slice a of data representating a new futur generated file the generated file will be composed of all those slice concatenated in the order where the range was pushed. Each corresponding FileOffset contain a Builder which is the parent file from which the data is read and an offset from where to read the data in that parent file.

Fields

ranges: Vec<(Range<u64>, FileOffset)>id: u32

Implementations

Add a new offset_range corresponding to a new block of the futur file, and the offset builder_offset from where to read the data in the parent VFileBuilder builder.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.