Module zerovec::varzerovec::components
source · Structs§
- This is a
VarZeroVecFormat
that stores u16s in the index array. Will have a smaller data size, but itβs more likely for larger arrays to be unrepresentable (and error on construction) - This is a
VarZeroVecFormat
that stores u32s in the index array. Will have a larger data size, but will support large arrays without problems. - A more parsed version of
VarZeroSlice
. This type is where most of the VarZeroVec internal representation code lies.
Constants§
- LENGT
H_ πWIDTH - MAX_
INDEX π - MAX_
LENGTH π - METADAT
A_ πWIDTH
Traits§
- This trait allows switching between different possible internal representations of VarZeroVec.
Functions§
- Collects the bytes for a VarZeroSlice into a Vec.
- Writes the bytes for a VarZeroSlice into an output buffer.