pub struct ContextTokenMonitor;Expand description
Stateless token counter using a character-based heuristic.
Implementations§
Trait Implementations§
Source§impl Clone for ContextTokenMonitor
impl Clone for ContextTokenMonitor
Source§fn clone(&self) -> ContextTokenMonitor
fn clone(&self) -> ContextTokenMonitor
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 ContextTokenMonitor
impl Debug for ContextTokenMonitor
Source§impl Default for ContextTokenMonitor
impl Default for ContextTokenMonitor
Source§fn default() -> ContextTokenMonitor
fn default() -> ContextTokenMonitor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextTokenMonitor
impl RefUnwindSafe for ContextTokenMonitor
impl Send for ContextTokenMonitor
impl Sync for ContextTokenMonitor
impl Unpin for ContextTokenMonitor
impl UnsafeUnpin for ContextTokenMonitor
impl UnwindSafe for ContextTokenMonitor
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