pub struct TokenizerConfig {
pub parse_char_as_string: bool,
pub ignore_numbers: bool,
pub allow_digit_separator: Choice<char>,
pub consider_as_symbols: Vec<char>,
pub consider_as_operators: Vec<char>,
}Expand description
Configuration struct for the tokenizer, allowing customization of tokenization behavior
Fields§
§parse_char_as_string: boolWhether single characters should be treated as strings and therefore may contains more than one character
ignore_numbers: boolConsiders numbers as words
allow_digit_separator: Choice<char>Allows a specific character as a digit separator (e.g., _)
consider_as_symbols: Vec<char>List of characters to be treated as symbols
consider_as_operators: Vec<char>List of characters to be treated as operators
Trait Implementations§
Source§impl Clone for TokenizerConfig
impl Clone for TokenizerConfig
Source§fn clone(&self) -> TokenizerConfig
fn clone(&self) -> TokenizerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenizerConfig
impl Debug for TokenizerConfig
Source§impl Default for TokenizerConfig
impl Default for TokenizerConfig
Source§fn default() -> TokenizerConfig
fn default() -> TokenizerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokenizerConfig
impl RefUnwindSafe for TokenizerConfig
impl Send for TokenizerConfig
impl Sync for TokenizerConfig
impl Unpin for TokenizerConfig
impl UnwindSafe for TokenizerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more