pub trait Tokenizer { // Required method fn tokenize<'a>(&self, text: &'a str) -> Vec<&'a str>; }
A trait that all Tokenizer should implement.
Tokenize given text and return a Vec<&str> where each &str inside a Vec is a slice from given text.
text
Vec<&str>
&str
Vec