pub trait Prune<K, V, P> {
// Required method
fn prune<S: BuildHasher>(&mut self, cache: &LightCache<K, V, S, P>);
}Expand description
Prune should control how entries are expired (not nescessarily evicted) from the cache
Required Methods§
Sourcefn prune<S: BuildHasher>(&mut self, cache: &LightCache<K, V, S, P>)
fn prune<S: BuildHasher>(&mut self, cache: &LightCache<K, V, S, P>)
Prune is typically be called before any operation on the cache
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.