pub struct BinaryGrammar<'a> {
pub pos_list: PosList,
pub connection: Option<ConnectionMatrix<'a>>,
}Expand description
Grammar part of the single binary dictionary
Fields§
§pos_list: PosListThe list of part of speechs
connection: Option<ConnectionMatrix<'a>>The overloadable connection cost matrix
Only system dictionary has this.
Implementations§
Source§impl<'a> BinaryGrammar<'a>
impl<'a> BinaryGrammar<'a>
Sourcepub fn load(buf: &'a [u8], description: &Description) -> SudachiResult<Self>
pub fn load(buf: &'a [u8], description: &Description) -> SudachiResult<Self>
load a grammar from bytes
Auto Trait Implementations§
impl<'a> Freeze for BinaryGrammar<'a>
impl<'a> RefUnwindSafe for BinaryGrammar<'a>
impl<'a> Send for BinaryGrammar<'a>
impl<'a> Sync for BinaryGrammar<'a>
impl<'a> Unpin for BinaryGrammar<'a>
impl<'a> UnsafeUnpin for BinaryGrammar<'a>
impl<'a> UnwindSafe for BinaryGrammar<'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