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
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§
source§impl Clone for OffsetCacheKind
impl Clone for OffsetCacheKind
source§fn clone(&self) -> OffsetCacheKind
fn clone(&self) -> OffsetCacheKind
Returns a copy 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 OffsetCacheKind
impl Debug for OffsetCacheKind
source§impl PartialEq<OffsetCacheKind> for OffsetCacheKind
impl PartialEq<OffsetCacheKind> for OffsetCacheKind
source§fn 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 ==
.