pub struct FreeSpaceAnalysis {
pub total_blocks: usize,
pub total_free_bytes: u64,
pub largest_block: u32,
pub average_block_size: u64,
pub fragmentation_ratio: f64,
pub blocks_by_size: Vec<(u32, u64)>,
pub size_histogram: Vec<(u32, usize)>,
}Fields§
§total_blocks: usize§total_free_bytes: u64§largest_block: u32§average_block_size: u64§fragmentation_ratio: f64§blocks_by_size: Vec<(u32, u64)>§size_histogram: Vec<(u32, usize)>Implementations§
Trait Implementations§
Source§impl Clone for FreeSpaceAnalysis
impl Clone for FreeSpaceAnalysis
Source§fn clone(&self) -> FreeSpaceAnalysis
fn clone(&self) -> FreeSpaceAnalysis
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 moreAuto Trait Implementations§
impl Freeze for FreeSpaceAnalysis
impl RefUnwindSafe for FreeSpaceAnalysis
impl Send for FreeSpaceAnalysis
impl Sync for FreeSpaceAnalysis
impl Unpin for FreeSpaceAnalysis
impl UnwindSafe for FreeSpaceAnalysis
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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