pub struct BinaryDictionary<'a> {
pub description: Description,
pub grammar: BinaryGrammar<'a>,
pub lexicon: BinaryLexicon<'a>,
/* private fields */
}Expand description
A single system or user dictionary
Fields§
§description: Description§grammar: BinaryGrammar<'a>§lexicon: BinaryLexicon<'a>Implementations§
Source§impl<'a> BinaryDictionary<'a>
impl<'a> BinaryDictionary<'a>
pub fn load_system(buf: &'a [u8]) -> SudachiResult<Self>
pub fn load_user(buf: &'a [u8]) -> SudachiResult<Self>
pub fn compatibility_key(&self) -> &str
pub fn is_compatible_with(&self, other: &BinaryDictionary<'_>) -> bool
Sourcepub fn reference_id_table(&self) -> SudachiResult<HashMap<u32, String>>
pub fn reference_id_table(&self) -> SudachiResult<HashMap<u32, String>>
Build-time helper for dictionary builders and dump tooling. Runtime tokenization does not use this table.
Trait Implementations§
Source§impl ReferenceIdAccess for BinaryDictionary<'_>
impl ReferenceIdAccess for BinaryDictionary<'_>
Auto Trait Implementations§
impl<'a> Freeze for BinaryDictionary<'a>
impl<'a> RefUnwindSafe for BinaryDictionary<'a>
impl<'a> Send for BinaryDictionary<'a>
impl<'a> Sync for BinaryDictionary<'a>
impl<'a> Unpin for BinaryDictionary<'a>
impl<'a> UnsafeUnpin for BinaryDictionary<'a>
impl<'a> UnwindSafe for BinaryDictionary<'a>
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