pub struct SimpleEstimator;Implementations§
Trait Implementations§
Source§impl TokenEstimator for SimpleEstimator
impl TokenEstimator for SimpleEstimator
fn estimate_tokens(&self, text: &str) -> usize
Auto Trait Implementations§
impl Freeze for SimpleEstimator
impl RefUnwindSafe for SimpleEstimator
impl Send for SimpleEstimator
impl Sync for SimpleEstimator
impl Unpin for SimpleEstimator
impl UnsafeUnpin for SimpleEstimator
impl UnwindSafe for SimpleEstimator
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