pub struct LoadOptions {
pub use_mmap_matrix: bool,
pub use_lazy_entries: bool,
pub lazy_cache_size: Option<usize>,
}Expand description
사전 로드 옵션
Fields§
§use_mmap_matrix: boolMatrix에 mmap 사용 (멀티프로세스 메모리 공유, 물리 메모리 절약)
use_lazy_entries: boolentries에 lazy loading 사용 (메모리 절약, 첫 조회 시 로드)
lazy_cache_size: Option<usize>lazy entries 캐시 크기 (기본: 10000)
Implementations§
Source§impl LoadOptions
impl LoadOptions
Sourcepub const fn memory_optimized() -> LoadOptions
pub const fn memory_optimized() -> LoadOptions
메모리 효율 최적화 옵션
Sourcepub const fn speed_optimized() -> LoadOptions
pub const fn speed_optimized() -> LoadOptions
속도 최적화 옵션 (전체 메모리 로드)
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§fn clone(&self) -> LoadOptions
fn clone(&self) -> LoadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadOptions
impl Debug for LoadOptions
Source§impl Default for LoadOptions
impl Default for LoadOptions
Source§fn default() -> LoadOptions
fn default() -> LoadOptions
Returns the “default value” for a type. Read more
impl Copy for LoadOptions
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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