Name Description Size
chars.rs ULE implementation for the `char` type. 6234
custom.rs 5845
encode.rs 15047
macros.rs 1301
mod.rs Traits over unaligned little-endian data (ULE, pronounced "yule"). The main traits for this module are [`ULE`], [`AsULE`] and, [`VarULE`]. See [the design doc](https://github.com/unicode-org/icu4x/blob/main/utils/zerovec/design_doc.md) for details on how these traits works under the hood. 17313
multi.rs 5993
niche.rs 6447
option.rs 8889
plain.rs ULE implementation for Plain Old Data types, including all sized integers. 12126
slices.rs 4117
tuple.rs ULE impls for tuples. Rust does not guarantee the layout of tuples, so ZeroVec defines its own tuple ULE types. Impls are defined for tuples of up to 6 elements. For longer tuples, use a custom struct with [`#[make_ule]`](crate::make_ule). # Examples ``` use zerovec::ZeroVec; // ZeroVec of tuples! let zerovec: ZeroVec<(u32, char)> = [(1, 'a'), (1234901, '啊'), (100, 'अ')] .iter() .copied() .collect(); assert_eq!(zerovec.get(1), Some((1234901, '啊'))); ``` 6758
unvalidated.rs 16424