pub struct MemoryReclaimNever;
Expand description
A do-nothing MemoryReclaimPolicy
which would never reclaim the memory of the closed nodes, leaving them as holes in the underlying storage.
This approach has the advantage that a NodeIndex
is never invalidated due to an automatic memory reorganization.
Furthermore, node utilization can still be maximized by manually calling reclaim_closed_nodes
method.
Trait Implementations§
Source§impl Clone for MemoryReclaimNever
impl Clone for MemoryReclaimNever
Source§fn clone(&self) -> MemoryReclaimNever
fn clone(&self) -> MemoryReclaimNever
Returns a duplicate 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 Default for MemoryReclaimNever
impl Default for MemoryReclaimNever
Source§fn default() -> MemoryReclaimNever
fn default() -> MemoryReclaimNever
Returns the “default value” for a type. Read more
Source§impl<V: Variant> MemoryPolicy<V> for MemoryReclaimNever
impl<V: Variant> MemoryPolicy<V> for MemoryReclaimNever
impl Copy for MemoryReclaimNever
Auto Trait Implementations§
impl Freeze for MemoryReclaimNever
impl RefUnwindSafe for MemoryReclaimNever
impl Send for MemoryReclaimNever
impl Sync for MemoryReclaimNever
impl Unpin for MemoryReclaimNever
impl UnwindSafe for MemoryReclaimNever
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