pub struct JapaneseDictionary { /* private fields */ }Implementations§
Source§impl JapaneseDictionary
impl JapaneseDictionary
Sourcepub fn from_cfg(cfg: &Config) -> SudachiResult<JapaneseDictionary>
pub fn from_cfg(cfg: &Config) -> SudachiResult<JapaneseDictionary>
Creates a dictionary from the specified configuration Dictionaries will be read from disk
Sourcepub fn from_cfg_storage(
cfg: &Config,
storage: SudachiDicData,
) -> SudachiResult<JapaneseDictionary>
pub fn from_cfg_storage( cfg: &Config, storage: SudachiDicData, ) -> SudachiResult<JapaneseDictionary>
Creates a dictionary from the specified configuration and storage
Sourcepub fn from_cfg_storage_with_embedded_chardef(
cfg: &Config,
storage: SudachiDicData,
) -> SudachiResult<JapaneseDictionary>
pub fn from_cfg_storage_with_embedded_chardef( cfg: &Config, storage: SudachiDicData, ) -> SudachiResult<JapaneseDictionary>
Creates a dictionary from the specified configuration and storage, with embedded character definition
Sourcepub fn lexicon(&self) -> &LexiconSet<'_>
pub fn lexicon(&self) -> &LexiconSet<'_>
Returns lexicon with the correct lifetime
Trait Implementations§
Source§impl DictionaryAccess for JapaneseDictionary
impl DictionaryAccess for JapaneseDictionary
fn grammar(&self) -> &Grammar<'_>
fn lexicon(&self) -> &LexiconSet<'_>
fn input_text_plugins(&self) -> &[Box<dyn InputTextPlugin + Sync + Send>]
fn oov_provider_plugins(&self) -> &[Box<dyn OovProviderPlugin + Sync + Send>]
fn path_rewrite_plugins(&self) -> &[Box<dyn PathRewritePlugin + Sync + Send>]
Auto Trait Implementations§
impl Freeze for JapaneseDictionary
impl !RefUnwindSafe for JapaneseDictionary
impl Send for JapaneseDictionary
impl Sync for JapaneseDictionary
impl Unpin for JapaneseDictionary
impl UnsafeUnpin for JapaneseDictionary
impl !UnwindSafe for JapaneseDictionary
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> 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