pub struct LazyStore { /* private fields */ }Expand description
Lazy 로드 저장소.
엔트리를 필요할 때만 디스크에서 읽어옵니다. 메모리 사용량을 줄이고 싶을 때 사용합니다.
Implementations§
Source§impl LazyStore
impl LazyStore
Sourcepub const fn new(lazy_entries: LazyEntries) -> LazyStore
pub const fn new(lazy_entries: LazyEntries) -> LazyStore
새 Lazy 저장소 생성.
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)
캐시 초기화
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LazyStore
impl RefUnwindSafe for LazyStore
impl Send for LazyStore
impl Sync for LazyStore
impl Unpin for LazyStore
impl UnsafeUnpin for LazyStore
impl UnwindSafe for LazyStore
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