pub trait TokenCount:
Send
+ Sync
+ Debug {
// Required method
fn count(&self, text: &str) -> usize;
}Expand description
Turns text into a token count.
See the module documentation for why the default is pessimistic.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".