pub struct ChunkMetadata<T> where
    T: NumberLike
{ pub n: usize, pub compressed_body_size: usize, pub prefix_metadata: PrefixMetadata<T>, }
Expand description

The metadata of a .qco file chunk.

Each file may contain multiple metadata sections, so to count the entries, one must sum the count n for each chunk metadata. This can be done easily - see the fast_seeking.rs example. One can also create a rough histogram (or a histogram of deltas, if delta encoding was used) by aggregating chunk metadata.

Fields

n: usize

The count of numbers in the chunk.

compressed_body_size: usize

The compressed byte length of the compressed numbers that immediately follow this chunk metadata section.

prefix_metadata: PrefixMetadata<T>

How the chunk body was compressed.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.