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 !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