Enum bm25::LanguageMode
source · #[non_exhaustive]pub enum LanguageMode {
Fixed(Language),
}Expand description
The language mode used by the tokenizer. This determines the algorithm used for stemming and the dictionary of stopwords.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for LanguageMode
impl Clone for LanguageMode
source§fn clone(&self) -> LanguageMode
fn clone(&self) -> LanguageMode
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 LanguageMode
impl Debug for LanguageMode
source§impl Default for LanguageMode
impl Default for LanguageMode
Auto Trait Implementations§
impl Freeze for LanguageMode
impl RefUnwindSafe for LanguageMode
impl Send for LanguageMode
impl Sync for LanguageMode
impl Unpin for LanguageMode
impl UnwindSafe for LanguageMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)