pub struct LazyEntries { /* private fields */ }Expand description
지연 로딩 엔트리 저장소
엔트리를 필요할 때만 디스크에서 읽어옵니다. 자주 사용되는 엔트리는 LRU 캐시에 저장됩니다.
Implementations§
Source§impl LazyEntries
impl LazyEntries
Sourcepub fn from_file<P>(path: P) -> Result<LazyEntries, DictError>
pub fn from_file<P>(path: P) -> Result<LazyEntries, DictError>
Sourcepub fn cached_count(&self) -> usize
pub fn cached_count(&self) -> usize
캐시된 엔트리 수 반환
Sourcepub fn set_cache_size(&self, size: usize)
pub fn set_cache_size(&self, size: usize)
캐시 크기 설정
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
캐시 초기화
Sourcepub fn get_entries_at(
&self,
first_index: u32,
surface: &str,
) -> Result<Vec<Arc<DictEntry>>, DictError>
pub fn get_entries_at( &self, first_index: u32, surface: &str, ) -> Result<Vec<Arc<DictEntry>>, DictError>
Auto Trait Implementations§
impl !Freeze for LazyEntries
impl RefUnwindSafe for LazyEntries
impl Send for LazyEntries
impl Sync for LazyEntries
impl Unpin for LazyEntries
impl UnsafeUnpin for LazyEntries
impl UnwindSafe for LazyEntries
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