[−][src]Function spell::tokenize
pub fn tokenize<'a>(
input: &'a str,
delimiters: &'a [char]
) -> impl Iterator<Item = &'a str>
Examples
let tokens : Vec<_> = spell::tokenize("a,b c", &[' ', ',']).collect(); assert_eq!(vec!["a", "b", "c"], tokens);