Improve docs and compare with alternatives
This commit is contained in:
parent
5962feb90a
commit
3d382ad741
1 changed files with 106 additions and 69 deletions
|
|
@ -12,7 +12,7 @@ use wasm_bindgen::prelude::*;
|
|||
|
||||
pub mod token;
|
||||
|
||||
/// A trait for tokenizers that take a string and return a list of tokens.
|
||||
/// Type alias for tokenizer functions that split a string into tokens.
|
||||
pub type Tokenizer<T> = dyn Fn(&str) -> Vec<Token<T>>;
|
||||
|
||||
#[cfg_attr(feature = "wasm", wasm_bindgen)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue