orx_selfref_col/memory/reclaimer.rs
1use crate::{CoreCol, Node, Variant};
2use orx_pinned_vec::PinnedVec;
3
4/// Memory reclaimer which reorganizes the collection nodes and brings node utilization to 100%.
5pub trait MemoryReclaimer<V>: Clone + Default
6where
7 V: Variant,
8{
9 /// Memory reclaimer which reorganizes the collection nodes and brings node utilization to 100%.
10 fn reclaim_nodes<P>(col: &mut CoreCol<V, P>) -> bool
11 where
12 P: PinnedVec<Node<V>>;
13}