Struct laz::LazVlr

source · []
pub struct LazVlr { /* private fields */ }
Expand description

The data stored in the record_data of the Laszip Vlr

This vlr contains information needed to compress or decompress LAZ/LAS data. Such as the points per chunk, the fields & version of the compression/decompression algorithm.

To create one from scratch, see the LazVlrBuilder

Implementations

The user id of the LasZip VLR header.

The record id of the LasZip VLR header.

The description of the LasZip VLR header.

Creates a new LazVlr

With fixed-size chunks.

panics

Will panic if items is empty or contains invalid items.

Tries to read the Vlr information from the record_data source

Writes the Vlr to the source.

This only write the record_data the header should be written before-hand.

Returns whether the chunk size is variable.

Returns the chunk size, that is, the number of points in each chunk.

This is only valid if Self::uses_variable_size_chunks returns false.

Returns the items compressed by this VLR

Returns the sum of the size of the laz_items, which should correspond to the expected size of points (uncompressed).

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.