pub struct EagerStore { /* private fields */ }Expand description
Eager 로드 저장소
전체 엔트리를 메모리에 로드합니다. 빠른 접근이 필요하고 메모리가 충분할 때 사용합니다.
Implementations§
Source§impl EagerStore
impl EagerStore
Sourcepub fn new(entries: Vec<DictEntry>) -> EagerStore
pub fn new(entries: Vec<DictEntry>) -> EagerStore
새 Eager 저장소 생성
DictEntry 벡터를 Arc로 래핑합니다.
Sourcepub const fn from_arc_vec(entries: Vec<Arc<DictEntry>>) -> EagerStore
pub const fn from_arc_vec(entries: Vec<Arc<DictEntry>>) -> EagerStore
Arc 벡터로부터 직접 생성
Trait Implementations§
Source§impl EntryStore for EagerStore
impl EntryStore for EagerStore
Auto Trait Implementations§
impl Freeze for EagerStore
impl RefUnwindSafe for EagerStore
impl Send for EagerStore
impl Sync for EagerStore
impl Unpin for EagerStore
impl UnsafeUnpin for EagerStore
impl UnwindSafe for EagerStore
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