pub struct PrefixCandidatePolicy {
pub min_tokens: u64,
pub stride_tokens: u64,
pub record_limit: u64,
pub page_size_tokens: u64,
}Fields§
§min_tokens: u64§stride_tokens: u64§record_limit: u64§page_size_tokens: u64Implementations§
Source§impl PrefixCandidatePolicy
impl PrefixCandidatePolicy
pub fn from_cache(cache: &StageKvCacheConfig) -> Self
pub fn candidate_token_counts(self, token_count: u64) -> Vec<u64>
pub fn record_candidate_token_counts(self, token_count: u64) -> Vec<u64>
Trait Implementations§
Source§impl Clone for PrefixCandidatePolicy
impl Clone for PrefixCandidatePolicy
Source§fn clone(&self) -> PrefixCandidatePolicy
fn clone(&self) -> PrefixCandidatePolicy
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 moreimpl Copy for PrefixCandidatePolicy
Source§impl Debug for PrefixCandidatePolicy
impl Debug for PrefixCandidatePolicy
impl Eq for PrefixCandidatePolicy
Source§impl PartialEq for PrefixCandidatePolicy
impl PartialEq for PrefixCandidatePolicy
impl StructuralPartialEq for PrefixCandidatePolicy
Auto Trait Implementations§
impl Freeze for PrefixCandidatePolicy
impl RefUnwindSafe for PrefixCandidatePolicy
impl Send for PrefixCandidatePolicy
impl Sync for PrefixCandidatePolicy
impl Unpin for PrefixCandidatePolicy
impl UnsafeUnpin for PrefixCandidatePolicy
impl UnwindSafe for PrefixCandidatePolicy
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