pub struct MmapDictionary { /* private fields */ }Expand description
메모리 맵 사전
mmap을 이용하여 사전 파일을 메모리에 매핑합니다.
Implementations§
Source§impl MmapDictionary
impl MmapDictionary
Sourcepub fn load<P>(path: P) -> Result<MmapDictionary, DictError>
pub fn load<P>(path: P) -> Result<MmapDictionary, DictError>
Sourcepub fn load_with_config<P>(
path: P,
config: LoaderConfig,
) -> Result<MmapDictionary, DictError>
pub fn load_with_config<P>( path: P, config: LoaderConfig, ) -> Result<MmapDictionary, DictError>
Sourcepub const fn trie(&self) -> &TrieBackend
pub const fn trie(&self) -> &TrieBackend
Trie 백엔드 참조
Sourcepub const fn matrix(&self) -> &DenseMatrix
pub const fn matrix(&self) -> &DenseMatrix
Matrix 참조
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MmapDictionary
impl RefUnwindSafe for MmapDictionary
impl Send for MmapDictionary
impl Sync for MmapDictionary
impl Unpin for MmapDictionary
impl UnsafeUnpin for MmapDictionary
impl UnwindSafe for MmapDictionary
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