pub struct Dsv4WindowCtx {
pub window_slot: i64,
pub prev_window_slot: i64,
pub window_slots_topk: Vec<i64>,
}Expand description
The layer-invariant ring context for one decode step of one request.
Fields§
§window_slot: i64Where this step’s own KV is written.
prev_window_slot: i64The previous position’s slot, for the compressor’s carry.
window_slots_topk: Vec<i64>One entry per ring slot j: the window slot holding the latest
position p <= pos with p % win == j, or
NO_WINDOW_SLOT where the sequence has not reached it.
Trait Implementations§
Source§impl Clone for Dsv4WindowCtx
impl Clone for Dsv4WindowCtx
Source§fn clone(&self) -> Dsv4WindowCtx
fn clone(&self) -> Dsv4WindowCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Dsv4WindowCtx
impl Debug for Dsv4WindowCtx
impl Eq for Dsv4WindowCtx
Source§impl PartialEq for Dsv4WindowCtx
impl PartialEq for Dsv4WindowCtx
impl StructuralPartialEq for Dsv4WindowCtx
Auto Trait Implementations§
impl Freeze for Dsv4WindowCtx
impl RefUnwindSafe for Dsv4WindowCtx
impl Send for Dsv4WindowCtx
impl Sync for Dsv4WindowCtx
impl Unpin for Dsv4WindowCtx
impl UnsafeUnpin for Dsv4WindowCtx
impl UnwindSafe for Dsv4WindowCtx
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more