pub trait Tokenizer: Send + Sync {
// Required method
fn tokenize(&self, text: &str, output: &mut Vec<Token>);
}Expand description
Breaks input text into a sequence of tokens.
Implementations must be thread-safe (Send + Sync) so that analyzers can
be shared across indexing threads.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".