Struct parallel_disk_usage::app::sub::Sub [−][src]
pub struct Sub<Data, GetData, Report> where
Data: Size + Into<u64> + Send + Sync,
Report: ParallelReporter<Data> + Sync,
GetData: Fn(&Metadata) -> Data + Copy + Sync, { pub files: Vec<PathBuf>, pub bytes_format: Data::DisplayFormat, pub direction: Direction, pub column_width_distribution: ColumnWidthDistribution, pub max_depth: NonZeroUsize, pub get_data: GetData, 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.
bytes_format: Data::DisplayFormat
Format to be used to display
the data.
direction: Direction
The direction of the visualization.
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.
get_data: GetData
Returns measured quantity of the files/directories.
reporter: Report
Reports measurement progress.
min_ratio: Fraction
Minimal size proportion required to appear.
no_sort: bool
Preserve order of entries.
Implementations
impl<Data, GetData, Report> Sub<Data, GetData, Report> where
Data: Size + Into<u64> + Send + Sync,
Report: ParallelReporter<Data> + Sync,
GetData: Fn(&Metadata) -> Data + Copy + Sync,
[src]
impl<Data, GetData, Report> Sub<Data, GetData, Report> where
Data: Size + Into<u64> + Send + Sync,
Report: ParallelReporter<Data> + Sync,
GetData: Fn(&Metadata) -> Data + Copy + Sync,
[src]pub fn run(self) -> Result<(), RuntimeError>
[src]
pub fn run(self) -> Result<(), RuntimeError>
[src]Run the sub program.
Auto Trait Implementations
impl<Data, GetData, Report> RefUnwindSafe for Sub<Data, GetData, Report> where
GetData: RefUnwindSafe,
Report: RefUnwindSafe,
<Data as Size>::DisplayFormat: RefUnwindSafe,
GetData: RefUnwindSafe,
Report: RefUnwindSafe,
<Data as Size>::DisplayFormat: RefUnwindSafe,
impl<Data, GetData, Report> Send for Sub<Data, GetData, Report> where
GetData: Send,
Report: Send,
<Data as Size>::DisplayFormat: Send,
GetData: Send,
Report: Send,
<Data as Size>::DisplayFormat: Send,
impl<Data, GetData, Report> Sync for Sub<Data, GetData, Report> where
<Data as Size>::DisplayFormat: Sync,
<Data as Size>::DisplayFormat: Sync,
impl<Data, GetData, Report> Unpin for Sub<Data, GetData, Report> where
GetData: Unpin,
Report: Unpin,
<Data as Size>::DisplayFormat: Unpin,
GetData: Unpin,
Report: Unpin,
<Data as Size>::DisplayFormat: Unpin,
impl<Data, GetData, Report> UnwindSafe for Sub<Data, GetData, Report> where
GetData: UnwindSafe,
Report: UnwindSafe,
<Data as Size>::DisplayFormat: UnwindSafe,
GetData: UnwindSafe,
Report: UnwindSafe,
<Data as Size>::DisplayFormat: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<X> Pipe for X
[src]
impl<X> Pipe for X
[src]impl<X> Pipe for X
[src]
impl<X> Pipe for X
[src]fn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
[src]
fn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
[src]Apply f
to self
. Read more
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
[src]
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
[src]Apply f
to &self
. Read more
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
[src]
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
[src]Apply f
to &mut self
. Read more
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
[src]
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
[src]Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read more
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return where
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
[src]
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return where
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
[src]Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read more
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
[src]
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
[src]Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Param>
. Read more
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
[src]
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
[src]Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Param>
. Read more
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
[src]
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
[src]Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Param>
. Read more
fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
[src]
fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
[src]Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Param>
. Read more
impl<T> Pointable for T
impl<T> Pointable for T