#[non_exhaustive]pub struct Summary<Size> {
pub inodes: usize,
pub exclusive_inodes: usize,
pub all_links: u64,
pub detected_links: usize,
pub exclusive_links: usize,
pub shared_size: Size,
pub exclusive_shared_size: Size,
}Expand description
Summary from HardlinkList or Reflection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inodes: usizeNumber of shared inodes, each with more than 1 links (i.e. nlink > 1).
exclusive_inodes: usizeNumber of shared inodes that don’t have links outside the measured tree.
This number is expected to be less than or equal to Self::inodes.
all_links: u64Totality of the numbers of links of all shared inodes.
detected_links: usizeTotal number of links of shared inodes that were detected within the measured tree.
This number is expected to be less than or equal to Self::all_links.
exclusive_links: usizeTotal number of links of shared inodes that don’t have links outside the measured tree.
This number is expected to be less than or equal to Self::detected_links.
Totality of the sizes of all shared inodes.
Totality of the sizes of all shared inodes that don’t have links outside the measured tree.
This number is expected to be less than or equal to Self::all_links.
Implementations§
Source§impl<Size> Summary<Size>
impl<Size> Summary<Size>
Sourcepub fn with_inodes(self, value: usize) -> Self
pub fn with_inodes(self, value: usize) -> Self
Sets the inodes field of this struct.
Sourcepub fn with_exclusive_inodes(self, value: usize) -> Self
pub fn with_exclusive_inodes(self, value: usize) -> Self
Sets the exclusive_inodes field of this struct.
Sourcepub fn with_all_links(self, value: u64) -> Self
pub fn with_all_links(self, value: u64) -> Self
Sets the all_links field of this struct.
Sourcepub fn with_detected_links(self, value: usize) -> Self
pub fn with_detected_links(self, value: usize) -> Self
Sets the detected_links field of this struct.
Sourcepub fn with_exclusive_links(self, value: usize) -> Self
pub fn with_exclusive_links(self, value: usize) -> Self
Sets the exclusive_links field of this struct.
Sets the shared_size field of this struct.
Sets the exclusive_shared_size field of this struct.
Source§impl<Size: Size> Summary<Size>
impl<Size: Size> Summary<Size>
Sourcepub fn display(&self, format: Size::DisplayFormat) -> SummaryDisplay<'_, Size>
pub fn display(&self, format: Size::DisplayFormat) -> SummaryDisplay<'_, Size>
Turns this Summary into something displayable.
Trait Implementations§
Source§impl<Size: AddAssign> AddAssign for Summary<Size>
impl<Size: AddAssign> AddAssign for Summary<Size>
Source§fn add_assign(&mut self, rhs: Summary<Size>)
fn add_assign(&mut self, rhs: Summary<Size>)
+= operation. Read moreSource§impl<'de, Size> Deserialize<'de> for Summary<Size>where
Size: Deserialize<'de>,
impl<'de, Size> Deserialize<'de> for Summary<Size>where
Size: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<Size: Copy> Copy for Summary<Size>
impl<Size: Eq> Eq for Summary<Size>
impl<Size> StructuralPartialEq for Summary<Size>
Auto Trait Implementations§
impl<Size> Freeze for Summary<Size>where
Size: Freeze,
impl<Size> RefUnwindSafe for Summary<Size>where
Size: RefUnwindSafe,
impl<Size> Send for Summary<Size>where
Size: Send,
impl<Size> Sync for Summary<Size>where
Size: Sync,
impl<Size> Unpin for Summary<Size>where
Size: Unpin,
impl<Size> UnwindSafe for Summary<Size>where
Size: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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 moreSource§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
f to &mut self where f takes a single parameter of type Param
and Self implements trait DerefMut<Target = Param>. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more