pub enum TokenCountStrategy {
CharApprox,
WhitespaceSplit,
CharDiv4,
}Expand description
Token 计数策略(简化版)
Variants§
Trait Implementations§
Source§impl Clone for TokenCountStrategy
impl Clone for TokenCountStrategy
Source§fn clone(&self) -> TokenCountStrategy
fn clone(&self) -> TokenCountStrategy
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 TokenCountStrategy
Source§impl Debug for TokenCountStrategy
impl Debug for TokenCountStrategy
Source§impl Default for TokenCountStrategy
impl Default for TokenCountStrategy
Source§fn default() -> TokenCountStrategy
fn default() -> TokenCountStrategy
Returns the “default value” for a type. Read more
impl Eq for TokenCountStrategy
Source§impl PartialEq for TokenCountStrategy
impl PartialEq for TokenCountStrategy
impl StructuralPartialEq for TokenCountStrategy
Auto Trait Implementations§
impl Freeze for TokenCountStrategy
impl RefUnwindSafe for TokenCountStrategy
impl Send for TokenCountStrategy
impl Sync for TokenCountStrategy
impl Unpin for TokenCountStrategy
impl UnsafeUnpin for TokenCountStrategy
impl UnwindSafe for TokenCountStrategy
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