Trait summavy_tokenizer_api::TokenStream
source · pub trait TokenStream {
fn advance(&mut self) -> bool;
fn token(&self) -> &Token;
fn token_mut(&mut self) -> &mut Token;
fn next(&mut self) -> Option<&Token> { ... }
fn process(&mut self, sink: &mut dyn FnMut(&Token)) { ... }
}
Expand description
TokenStream
is the result of the tokenization.
It consists consumable stream of Token
s.