pub struct FragmentationReport {
pub degree_distribution: HashMap<usize, usize>,
pub total_capacity: usize,
pub total_used: usize,
pub fragmentation_ratio: f64,
pub wasted_bytes: usize,
}Expand description
Report on memory fragmentation in graph structures
Fields§
§degree_distribution: HashMap<usize, usize>Distribution of node degrees
total_capacity: usizeTotal capacity allocated for adjacency lists
total_used: usizeTotal capacity actually used
fragmentation_ratio: f64Fragmentation ratio (0.0 = no fragmentation, 1.0 = all wasted)
wasted_bytes: usizeEstimated wasted bytes due to over-allocation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FragmentationReport
impl RefUnwindSafe for FragmentationReport
impl Send for FragmentationReport
impl Sync for FragmentationReport
impl Unpin for FragmentationReport
impl UnwindSafe for FragmentationReport
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more