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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for OffsetCacheKind
impl PartialEq for OffsetCacheKind
impl Copy for OffsetCacheKind
impl Eq for OffsetCacheKind
impl StructuralPartialEq for OffsetCacheKind
Auto Trait Implementations§
impl Freeze for OffsetCacheKind
impl RefUnwindSafe for OffsetCacheKind
impl Send for OffsetCacheKind
impl Sync for OffsetCacheKind
impl Unpin for OffsetCacheKind
impl UnwindSafe for OffsetCacheKind
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