pub trait SpillPolicy<C> {
// Required method
fn apply(&mut self, queue: &mut VecDeque<Entry<C>>);
}Expand description
Decides which queue entries to spill out and which to keep resident.
Invoked at well-defined moments by the holder of the queue (e.g., after
pushing a new chunk). The implementation may rewrite entries in either
direction: convert Typed to Paged (spill out) or Paged to Typed
(fetch back).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".