pub struct CacheProjection {
pub bytes: String,
pub digest: String,
pub byte_len: usize,
pub char_len: usize,
pub approx_tokens: usize,
}Expand description
Byte-exact projection of a constitution into the cache-stable prompt prefix.
Fields§
§bytes: StringExactly the bytes rendered into the model-facing block body.
digest: StringStable content digest of bytes.
byte_len: usize§char_len: usize§approx_tokens: usizeCoarse token estimate. Deterministic, not a tokenizer result.
Trait Implementations§
Source§impl Clone for CacheProjection
impl Clone for CacheProjection
Source§fn clone(&self) -> CacheProjection
fn clone(&self) -> CacheProjection
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 CacheProjection
impl Debug for CacheProjection
impl Eq for CacheProjection
Source§impl PartialEq for CacheProjection
impl PartialEq for CacheProjection
impl StructuralPartialEq for CacheProjection
Auto Trait Implementations§
impl Freeze for CacheProjection
impl RefUnwindSafe for CacheProjection
impl Send for CacheProjection
impl Sync for CacheProjection
impl Unpin for CacheProjection
impl UnsafeUnpin for CacheProjection
impl UnwindSafe for CacheProjection
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.