pub struct Sub<Size, SizeGetter, Report>where
Report: ParallelReporter<Size> + Sync,
Size: Size + Into<u64> + Serialize + Send + Sync,
SizeGetter: GetSize<Size = Size> + Copy + Sync,
DataTreeReflection<String, Size>: Into<UnitAndTree>,{
pub files: Vec<PathBuf>,
pub json_output: bool,
pub bytes_format: Size::DisplayFormat,
pub direction: Direction,
pub bar_alignment: BarAlignment,
pub column_width_distribution: ColumnWidthDistribution,
pub max_depth: NonZeroUsize,
pub size_getter: SizeGetter,
pub reporter: Report,
pub min_ratio: Fraction,
pub no_sort: bool,
}
Expand description
The sub program of the main application.
Fields§
§files: Vec<PathBuf>
List of files and/or directories.
json_output: bool
Print JSON data instead of an ASCII chart.
bytes_format: Size::DisplayFormat
Format to be used to display
the sizes returned by size_getter
.
direction: Direction
The direction of the visualization.
bar_alignment: BarAlignment
The alignment of the bars.
column_width_distribution: ColumnWidthDistribution
Distribution and number of characters/blocks can be placed in a line.
max_depth: NonZeroUsize
Maximum number of levels that should be visualized.
size_getter: SizeGetter
Get the size of files/directories.
reporter: Report
Reports measurement progress.
min_ratio: Fraction
Minimal size proportion required to appear.
no_sort: bool
Preserve order of entries.
Implementations§
Source§impl<Size, SizeGetter, Report> Sub<Size, SizeGetter, Report>where
Size: Size + Into<u64> + Serialize + Send + Sync,
Report: ParallelReporter<Size> + Sync,
SizeGetter: GetSize<Size = Size> + Copy + Sync,
DataTreeReflection<String, Size>: Into<UnitAndTree>,
impl<Size, SizeGetter, Report> Sub<Size, SizeGetter, Report>where
Size: Size + Into<u64> + Serialize + Send + Sync,
Report: ParallelReporter<Size> + Sync,
SizeGetter: GetSize<Size = Size> + Copy + Sync,
DataTreeReflection<String, Size>: Into<UnitAndTree>,
Sourcepub fn run(self) -> Result<(), RuntimeError>
pub fn run(self) -> Result<(), RuntimeError>
Run the sub program.
Auto Trait Implementations§
impl<Size, SizeGetter, Report> Freeze for Sub<Size, SizeGetter, Report>where
Reflection<String, Size>: Sized,
<Size as Size>::DisplayFormat: Freeze,
SizeGetter: Freeze,
Report: Freeze,
impl<Size, SizeGetter, Report> RefUnwindSafe for Sub<Size, SizeGetter, Report>where
Reflection<String, Size>: Sized,
<Size as Size>::DisplayFormat: RefUnwindSafe,
SizeGetter: RefUnwindSafe,
Report: RefUnwindSafe,
impl<Size, SizeGetter, Report> Send for Sub<Size, SizeGetter, Report>where
Reflection<String, Size>: Sized,
<Size as Size>::DisplayFormat: Send,
SizeGetter: Send,
Report: Send,
impl<Size, SizeGetter, Report> Sync for Sub<Size, SizeGetter, Report>
impl<Size, SizeGetter, Report> Unpin for Sub<Size, SizeGetter, Report>where
Reflection<String, Size>: Sized,
<Size as Size>::DisplayFormat: Unpin,
SizeGetter: Unpin,
Report: Unpin,
impl<Size, SizeGetter, Report> UnwindSafe for Sub<Size, SizeGetter, Report>where
Reflection<String, Size>: Sized,
<Size as Size>::DisplayFormat: UnwindSafe,
SizeGetter: UnwindSafe,
Report: 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
Mutably borrows from an owned value. Read more
Source§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
Apply
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
Apply
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
Apply
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,
Apply
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
Apply
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
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more