Skip to main content

HypcWrite

Struct HypcWrite 

Source
pub struct HypcWrite<'a> {
    pub quant_bits: u8,
    pub quantized_positions: &'a [u16],
    pub decode_min: [f32; 3],
    pub decode_max: [f32; 3],
    pub tile_key: Option<TileKey>,
    pub geog_crs: Option<GeoCrs>,
    pub geog_bbox_deg: Option<GeoExtentDeg>,
    pub smc1: Option<&'a SemanticMask>,
}
Expand description

Parameters for writing an HPC1 file.

Fields§

§quant_bits: u8

Must be 16 today.

§quantized_positions: &'a [u16]

Flat u16 triplets [x0,y0,z0, x1,y1,z1, …], length must be 3*N.

§decode_min: [f32; 3]§decode_max: [f32; 3]§tile_key: Option<TileKey>§geog_crs: Option<GeoCrs>

If present and geog_crs is Some(Crs84), a GEOT v1 bbox footer is emitted.

§geog_bbox_deg: Option<GeoExtentDeg>§smc1: Option<&'a SemanticMask>

Optional SMC1 semantic mask to append. When encoding == Smc1Encoding::Zlib, the data will be zlib-compressed on write.

Auto Trait Implementations§

§

impl<'a> Freeze for HypcWrite<'a>

§

impl<'a> RefUnwindSafe for HypcWrite<'a>

§

impl<'a> Send for HypcWrite<'a>

§

impl<'a> Sync for HypcWrite<'a>

§

impl<'a> Unpin for HypcWrite<'a>

§

impl<'a> UnsafeUnpin for HypcWrite<'a>

§

impl<'a> UnwindSafe for HypcWrite<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.