Struct lindera_dictionary::UserDictionaryConfig
source · pub struct UserDictionaryConfig {
pub path: PathBuf,
pub kind: Option<DictionaryKind>,
}
Expand description
User dictionary config
Use this if you want to use a user dictionary when tokenizing.
Fields§
§path: PathBuf
Path to the user dictionary file.
kind: Option<DictionaryKind>
If the user dictionary was in CSV format, specify the dictionary type (IPADIC, UniDic, ko-dic or CC-CEDICT).
Trait Implementations§
source§impl Clone for UserDictionaryConfig
impl Clone for UserDictionaryConfig
source§fn clone(&self) -> UserDictionaryConfig
fn clone(&self) -> UserDictionaryConfig
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 UserDictionaryConfig
impl Debug for UserDictionaryConfig
source§impl<'de> Deserialize<'de> for UserDictionaryConfig
impl<'de> Deserialize<'de> for UserDictionaryConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for UserDictionaryConfig
impl PartialEq for UserDictionaryConfig
source§fn eq(&self, other: &UserDictionaryConfig) -> bool
fn eq(&self, other: &UserDictionaryConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UserDictionaryConfig
impl Serialize for UserDictionaryConfig
impl Eq for UserDictionaryConfig
impl StructuralPartialEq for UserDictionaryConfig
Auto Trait Implementations§
impl Freeze for UserDictionaryConfig
impl RefUnwindSafe for UserDictionaryConfig
impl Send for UserDictionaryConfig
impl Sync for UserDictionaryConfig
impl Unpin for UserDictionaryConfig
impl UnwindSafe for UserDictionaryConfig
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