pub struct MmapTrie { /* private fields */ }Expand description
mmap 백엔드 Trie
파일을 메모리 맵으로 직접 접근하여 불필요한 복사 없이 Trie를 사용합니다.
Implementations§
Source§impl MmapTrie
impl MmapTrie
Sourcepub fn exact_match(&self, key: &str) -> Option<u32>
pub fn exact_match(&self, key: &str) -> Option<u32>
정확히 일치하는 키 검색
Sourcepub fn exact_match_bytes(&self, key: &[u8]) -> Option<u32>
pub fn exact_match_bytes(&self, key: &[u8]) -> Option<u32>
바이트 키로 정확히 일치하는 키 검색
Sourcepub fn common_prefix_search<'a>(
&'a self,
text: &'a str,
) -> impl Iterator<Item = (u32, usize)> + 'a
pub fn common_prefix_search<'a>( &'a self, text: &'a str, ) -> impl Iterator<Item = (u32, usize)> + 'a
공통 접두사 검색
Auto Trait Implementations§
impl Freeze for MmapTrie
impl RefUnwindSafe for MmapTrie
impl Send for MmapTrie
impl Sync for MmapTrie
impl Unpin for MmapTrie
impl UnsafeUnpin for MmapTrie
impl UnwindSafe for MmapTrie
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