Struct s_expr::TokenizerConfig
source · [−]pub struct TokenizerConfig { /* private fields */ }Expand description
Config for the tokenizer, for flags
Implementations
sourceimpl 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
sourceimpl Clone for TokenizerConfig
impl Clone for TokenizerConfig
sourcefn clone(&self) -> TokenizerConfig
fn clone(&self) -> TokenizerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TokenizerConfig
impl Debug for TokenizerConfig
Auto Trait Implementations
impl RefUnwindSafe for TokenizerConfig
impl Send for TokenizerConfig
impl Sync for TokenizerConfig
impl Unpin for TokenizerConfig
impl UnwindSafe for TokenizerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more