pub struct DictionaryConfig {
pub kind: Option<DictionaryKind>,
pub path: Option<PathBuf>,
}Expand description
Dictionary config
Use this if you want to use a dictionary when tokenizing.
Either kind or path must be specified.
Fields§
§kind: Option<DictionaryKind>Specify the kind of dictionary (IPADIC, UniDic, ko-dic, CC-CEDICT) if a self-contained dictionary is used for tokenization.
path: Option<PathBuf>Specifies the path to a pre-built external dictionary if one is used.
Trait Implementations§
Source§impl Clone for DictionaryConfig
impl Clone for DictionaryConfig
Source§fn clone(&self) -> DictionaryConfig
fn clone(&self) -> DictionaryConfig
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 DictionaryConfig
impl Debug for DictionaryConfig
Source§impl<'de> Deserialize<'de> for DictionaryConfig
impl<'de> Deserialize<'de> for DictionaryConfig
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 DictionaryConfig
impl PartialEq for DictionaryConfig
Source§impl Serialize for DictionaryConfig
impl Serialize for DictionaryConfig
impl Eq for DictionaryConfig
impl StructuralPartialEq for DictionaryConfig
Auto Trait Implementations§
impl Freeze for DictionaryConfig
impl RefUnwindSafe for DictionaryConfig
impl Send for DictionaryConfig
impl Sync for DictionaryConfig
impl Unpin for DictionaryConfig
impl UnwindSafe for DictionaryConfig
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