pub struct ItemIdCodec;Expand description
Dictionary-encoded item IDs with RLE-encoded u32 indices.
Similar to InternedStringCodec but uses u32 indices to support
repositories with more than 65535 unique item IDs.
Layout:
[dict_count: u32 LE]
[len_0: u16 LE] [bytes_0...]
...
[run_count: u32 LE]
[run_len_0: u16 LE] [index_0: u32 LE]
...Trait Implementations§
Source§impl ColumnCodec for ItemIdCodec
impl ColumnCodec for ItemIdCodec
Auto Trait Implementations§
impl Freeze for ItemIdCodec
impl RefUnwindSafe for ItemIdCodec
impl Send for ItemIdCodec
impl Sync for ItemIdCodec
impl Unpin for ItemIdCodec
impl UnsafeUnpin for ItemIdCodec
impl UnwindSafe for ItemIdCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more