pub struct UserDictionaryBuilderOptions { /* private fields */ }Expand description
Builder for UserDictionaryBuilder.
Implementations§
Source§impl UserDictionaryBuilderOptions
impl UserDictionaryBuilderOptions
pub fn user_dictionary_fields_num(self, value: usize) -> Self
pub fn dictionary_fields_num(self, value: usize) -> Self
pub fn default_word_cost(self, value: i16) -> Self
pub fn default_left_context_id(self, value: u16) -> Self
pub fn default_right_context_id(self, value: u16) -> Self
pub fn flexible_csv(self, value: bool) -> Self
pub fn user_dictionary_handler( self, value: Option<Box<dyn Fn(&StringRecord) -> LinderaResult<Vec<String>>>>, ) -> Self
Sourcepub fn builder(
self,
) -> Result<UserDictionaryBuilder, UserDictionaryBuilderOptionsError>
pub fn builder( self, ) -> Result<UserDictionaryBuilder, UserDictionaryBuilderOptionsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserDictionaryBuilderOptions
impl !RefUnwindSafe for UserDictionaryBuilderOptions
impl !Send for UserDictionaryBuilderOptions
impl !Sync for UserDictionaryBuilderOptions
impl Unpin for UserDictionaryBuilderOptions
impl !UnwindSafe for UserDictionaryBuilderOptions
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