pub struct Window(/* private fields */);Expand description
The most tokens one model reads in a single call, prompt and reply together.
Zero is unrepresentable, and absence is not zero. Were a window
nobody stated and a window of zero the same value, the context
reminder would measure a conversation against nothing and report
every session as full. A figure nobody registered is
carried as None all the way to the reminder, which then stays
silent, and every layer in between is spared the rule that zero is
special.
A separate type from Ceiling although both are
non-zero token counts: one bounds what the model may read and the
other bounds what it may write, and a call that swapped them would
compile.
Implementations§
Trait Implementations§
impl Copy for Window
Source§impl<'de> Deserialize<'de> for Window
impl<'de> Deserialize<'de> for Window
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Window
Source§impl Ord for Window
impl Ord for Window
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Window
impl PartialOrd for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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