Struct llamapun::util::data_helpers::LexicalOptions
source · [−]pub struct LexicalOptions {
pub discard_math: bool,
pub discard_punct: bool,
pub discard_case: bool,
}
Expand description
Options for lexical normalization on an individual word
Fields
discard_math: bool
math will be entirely omitted when set
discard_punct: bool
non-alphanumeric characters will be entirely omitted when set
discard_case: bool
all letters will be lowercased when set
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LexicalOptions
impl Send for LexicalOptions
impl Sync for LexicalOptions
impl Unpin for LexicalOptions
impl UnwindSafe for LexicalOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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