Enum queue_file::OffsetCacheKind
source · [−]pub enum OffsetCacheKind {
Linear {
offset: usize,
},
Quadratic,
}
Expand description
Policy for offset caching if enabled. Notice that offsets frequency might be skewed due after series of adding/removal. This shall not affect functional properties, only performance one.
Variants
Linear
Fields
offset: usize
Linear offseting.
Next offset would be cached after offset
additions.
Quadratic
Quadratic offseting.
Cached offsets form a sequence of perfect squares (e.g. cached 1st, 4th, 9th, .. offsets).
Trait Implementations
sourceimpl Clone for OffsetCacheKind
impl Clone for OffsetCacheKind
sourcefn clone(&self) -> OffsetCacheKind
fn clone(&self) -> OffsetCacheKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OffsetCacheKind
impl Debug for OffsetCacheKind
sourceimpl PartialEq<OffsetCacheKind> for OffsetCacheKind
impl PartialEq<OffsetCacheKind> for OffsetCacheKind
sourcefn eq(&self, other: &OffsetCacheKind) -> bool
fn eq(&self, other: &OffsetCacheKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OffsetCacheKind) -> bool
fn ne(&self, other: &OffsetCacheKind) -> bool
This method tests for !=
.
impl Copy for OffsetCacheKind
impl StructuralPartialEq for OffsetCacheKind
Auto Trait Implementations
impl RefUnwindSafe for OffsetCacheKind
impl Send for OffsetCacheKind
impl Sync for OffsetCacheKind
impl Unpin for OffsetCacheKind
impl UnwindSafe for OffsetCacheKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more