Struct light_cache::policy::noop::NoopPolicy
source · pub struct NoopPolicy;Expand description
A policy that does nothing
Trait Implementations§
source§impl Clone for NoopPolicy
impl Clone for NoopPolicy
source§fn clone(&self) -> NoopPolicy
fn clone(&self) -> NoopPolicy
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 NoopPolicy
impl Debug for NoopPolicy
source§impl<K, V> Policy<K, V> for NoopPolicy
impl<K, V> Policy<K, V> for NoopPolicy
source§fn lock_inner(&self) -> MutexGuard<'_, ()>
fn lock_inner(&self) -> MutexGuard<'_, ()>
Panics Read more
fn get<S: BuildHasher>( &self, key: &K, cache: &LightCache<K, V, S, Self>, ) -> Option<V>
fn insert<S: BuildHasher>( &self, key: K, value: V, cache: &LightCache<K, V, S, Self>, ) -> Option<V>
fn remove<S: BuildHasher>( &self, key: &K, cache: &LightCache<K, V, S, Self>, ) -> Option<V>
source§fn prune<S: BuildHasher>(&self, cache: &LightCache<K, V, S, Self>)
fn prune<S: BuildHasher>(&self, cache: &LightCache<K, V, S, Self>)
Warning: Read more
source§impl<K, V> Prune<K, V, NoopPolicy> for ()
impl<K, V> Prune<K, V, NoopPolicy> for ()
source§fn prune<S: BuildHasher>(&mut self, _: &LightCache<K, V, S, NoopPolicy>)
fn prune<S: BuildHasher>(&mut self, _: &LightCache<K, V, S, NoopPolicy>)
Prune is typically be called before any operation on the cahce Read more
impl Copy for NoopPolicy
Auto Trait Implementations§
impl Freeze for NoopPolicy
impl RefUnwindSafe for NoopPolicy
impl Send for NoopPolicy
impl Sync for NoopPolicy
impl Unpin for NoopPolicy
impl UnwindSafe for NoopPolicy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)