pub struct Utilization {
pub capacity: usize,
pub num_active_nodes: usize,
pub num_closed_nodes: usize,
}
Expand description
Node utilization of the underlying storage of the self referential collection.
The result contains the following bits of information:
capacity
: number of positions that is already allocated.num_active_nodes
: number of active nodes holding data.num_closed_nodes
: number of nodes which had been opened and closed afterwards; however, not yet reclaimed.
Note that num_active_nodes + num_closed_nodes
reflects the length of the underlying pinned vector,
which is less than or equal to the capacity
.
Fields§
§capacity: usize
Number of positions that is already allocated.
num_active_nodes: usize
Number of active nodes holding data.
num_closed_nodes: usize
Number of nodes which had been opened and closed afterwards; however, not yet reclaimed.
Trait Implementations§
Source§impl Clone for Utilization
impl Clone for Utilization
Source§fn clone(&self) -> Utilization
fn clone(&self) -> Utilization
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 Utilization
impl Debug for Utilization
Source§impl PartialEq for Utilization
impl PartialEq for Utilization
impl Eq for Utilization
impl StructuralPartialEq for Utilization
Auto Trait Implementations§
impl Freeze for Utilization
impl RefUnwindSafe for Utilization
impl Send for Utilization
impl Sync for Utilization
impl Unpin for Utilization
impl UnwindSafe for Utilization
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