pub struct DecodeMetaLayout { /* private fields */ }Expand description
2026-09-25: The decode-metadata layout for rows rows (see the module docs).
Implementations§
Source§impl DecodeMetaLayout
impl DecodeMetaLayout
Sourcepub fn for_max_batch_size(max_batch_size: usize) -> Self
pub fn for_max_batch_size(max_batch_size: usize) -> Self
2026-09-25: The layout for the serve max_batch_size. It applies only the
floor; the ceiling DECODE_META_MAX_ROWS is checked by the serve path.
pub fn positions_off(&self) -> usize
pub fn seq_slot_off(&self) -> usize
pub fn slots_off(&self) -> usize
pub fn seq_lens_off(&self) -> usize
Sourcepub fn block_table_off(&self) -> usize
pub fn block_table_off(&self) -> usize
2026-09-25: Offset of the flattened block table, row stride max_blocks · 4 bytes.
Sourcepub fn meta_bytes(&self, max_blocks: usize) -> usize
pub fn meta_bytes(&self, max_blocks: usize) -> usize
2026-09-25: Bytes of the whole block for max_blocks blocks per row.
Trait Implementations§
Source§impl Clone for DecodeMetaLayout
impl Clone for DecodeMetaLayout
Source§fn clone(&self) -> DecodeMetaLayout
fn clone(&self) -> DecodeMetaLayout
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 moreSource§impl Debug for DecodeMetaLayout
impl Debug for DecodeMetaLayout
Source§impl PartialEq for DecodeMetaLayout
impl PartialEq for DecodeMetaLayout
impl Copy for DecodeMetaLayout
impl Eq for DecodeMetaLayout
impl StructuralPartialEq for DecodeMetaLayout
Auto Trait Implementations§
impl Freeze for DecodeMetaLayout
impl RefUnwindSafe for DecodeMetaLayout
impl Send for DecodeMetaLayout
impl Sync for DecodeMetaLayout
impl Unpin for DecodeMetaLayout
impl UnwindSafe for DecodeMetaLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.