pub struct DecodedStore<'a> { /* private fields */ }Expand description
A zero-allocation view into indexed-encoded data, providing random access to individual slices.
Constructed from &[u64] in O(1), this wraps the offset index and data region
and provides get(k) to retrieve the k-th slice as (&[u64], u8).
Each access is independent — no iterator state — enabling LLVM to eliminate
unused field lookups entirely.
Implementations§
Source§impl<'a> DecodedStore<'a>
impl<'a> DecodedStore<'a>
Sourcepub fn new(store: &'a [u64]) -> Self
pub fn new(store: &'a [u64]) -> Self
Creates a decoded view of an indexed-encoded &[u64] store.
This is O(1) — it just reads the first offset to locate the index and data regions. No allocation, no iteration.
Trait Implementations§
Source§impl<'a> Clone for DecodedStore<'a>
impl<'a> Clone for DecodedStore<'a>
Source§fn clone(&self) -> DecodedStore<'a>
fn clone(&self) -> DecodedStore<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DecodedStore<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecodedStore<'a>
impl<'a> RefUnwindSafe for DecodedStore<'a>
impl<'a> Send for DecodedStore<'a>
impl<'a> Sync for DecodedStore<'a>
impl<'a> Unpin for DecodedStore<'a>
impl<'a> UnwindSafe for DecodedStore<'a>
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