pub struct WordsPrefixesFst<'t, 'i> { /* private fields */ }Implementations§
Source§impl<'t, 'i> WordsPrefixesFst<'t, 'i>
impl<'t, 'i> WordsPrefixesFst<'t, 'i>
pub fn new( wtxn: &'t mut RwTxn<'i>, index: &'i Index, ) -> WordsPrefixesFst<'t, 'i>
Sourcepub fn threshold(&mut self, value: usize) -> &mut Self
pub fn threshold(&mut self, value: usize) -> &mut Self
Set the number of words required to make a prefix be part of the words prefixes database. If a word prefix is supposed to match more than this number of words in the dictionary, therefore this prefix is added to the words prefixes datastructures.
Default value is 100. This value must be higher than 50 and will be clamped to this bound otherwise.
Sourcepub fn max_prefix_length(&mut self, value: usize) -> &mut Self
pub fn max_prefix_length(&mut self, value: usize) -> &mut Self
Set the maximum length of prefixes in bytes.
Default value is 4 bytes. This value must be between 1 and 25 will be clamped
to these bounds, otherwise.
pub fn execute(self) -> Result<()>
Auto Trait Implementations§
impl<'t, 'i> Freeze for WordsPrefixesFst<'t, 'i>
impl<'t, 'i> RefUnwindSafe for WordsPrefixesFst<'t, 'i>
impl<'t, 'i> Send for WordsPrefixesFst<'t, 'i>
impl<'t, 'i> !Sync for WordsPrefixesFst<'t, 'i>
impl<'t, 'i> Unpin for WordsPrefixesFst<'t, 'i>
impl<'t, 'i> !UnwindSafe for WordsPrefixesFst<'t, 'i>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more