pub struct MultilingualMethod { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Default for MultilingualMethod
impl Default for MultilingualMethod
Source§impl EstimationMethod for MultilingualMethod
impl EstimationMethod for MultilingualMethod
Source§type Parameters = MultilingualMethodParameters
type Parameters = MultilingualMethodParameters
Type for the parameters used by this method
Source§fn estimate(&self, text: &str) -> usize
fn estimate(&self, text: &str) -> usize
Estimate token count using extracted features and parameters
Source§fn parameters(&self) -> Self::Parameters
fn parameters(&self) -> Self::Parameters
Get current parameters
Source§fn set_parameters(&mut self, params: Self::Parameters)
fn set_parameters(&mut self, params: Self::Parameters)
Set parameters
Auto Trait Implementations§
impl Freeze for MultilingualMethod
impl RefUnwindSafe for MultilingualMethod
impl Send for MultilingualMethod
impl Sync for MultilingualMethod
impl Unpin for MultilingualMethod
impl UnwindSafe for MultilingualMethod
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