pub struct TokenizerConfig { /* private fields */ }
Expand description
Config for the tokenizer, for flags
Implementations§
Source§impl TokenizerConfig
impl TokenizerConfig
Sourcepub fn comment(self, enabled: bool) -> Self
pub fn comment(self, enabled: bool) -> Self
Support comment in the output of the tokenizer or filter them away
Sourcepub fn braces(self, enabled: bool) -> Self
pub fn braces(self, enabled: bool) -> Self
Support braces group in the output of the tokenizer or filter them away
Sourcepub fn bracket(self, enabled: bool) -> Self
pub fn bracket(self, enabled: bool) -> Self
Support bracket group in the output of the tokenizer or filter them away
Sourcepub fn support_bytes(self, supported: bool) -> Self
pub fn support_bytes(self, supported: bool) -> Self
Support the bytes atom in the output of the tokenizer
Trait Implementations§
Source§impl Clone for TokenizerConfig
impl Clone for TokenizerConfig
Source§fn clone(&self) -> TokenizerConfig
fn clone(&self) -> TokenizerConfig
Returns a copy 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
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