pub trait TokenFilter:
'static
+ Send
+ Sync
+ TokenFilterClone {
// Required method
fn transform<'a>(
&self,
token_stream: BoxTokenStream<'a>,
) -> BoxTokenStream<'a>;
}
Expand description
Trait for the pluggable components of Tokenizer
s.
Required Methods§
Sourcefn transform<'a>(&self, token_stream: BoxTokenStream<'a>) -> BoxTokenStream<'a>
fn transform<'a>(&self, token_stream: BoxTokenStream<'a>) -> BoxTokenStream<'a>
Wraps a token stream and returns the modified one.