Struct parallel_disk_usage::args::Args [−][src]
pub struct Args {
pub files: Vec<PathBuf>,
pub bytes_format: BytesFormat,
pub top_down: bool,
pub quantity: Quantity,
pub max_depth: NonZeroUsize,
pub total_width: Option<usize>,
pub column_width: Option<Vec<usize>>,
pub min_ratio: Fraction,
pub no_sort: bool,
pub silent_errors: bool,
pub progress: bool,
}Expand description
The CLI arguments.
Fields
files: Vec<PathBuf>List of files and/or directories.
bytes_format: BytesFormatHow to display the numbers of bytes.
top_down: boolPrint the tree top-down instead of bottom-up.
quantity: QuantityAspect of the files/directories to be measured.
max_depth: NonZeroUsizeMaximum depth to display the data (must be greater than 0).
total_width: Option<usize>Width of the visualization.
column_width: Option<Vec<usize>>Maximum widths of the tree column and width of the bar column.
min_ratio: FractionMinimal size proportion required to appear.
no_sort: boolPreserve order of entries.
silent_errors: boolPrevent filesystem error messages from appearing in stderr.
progress: boolReport progress being made at the expense of performance.
Trait Implementations
impl StructOpt for Args[src]
impl StructOpt for Args[src]fn from_clap(matches: &ArgMatches<'_>) -> Self[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self[src]Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
fn from_args() -> Self[src]
fn from_args() -> Self[src]Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
fn from_args_safe() -> Result<Self, Error>[src]
fn from_args_safe() -> Result<Self, Error>[src]Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]Gets the struct from any iterator such as a Vec of your making. Read more
impl StructOptInternal for Args[src]
impl StructOptInternal for Args[src]fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>[src]
fn is_subcommand() -> bool[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>[src]
Auto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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 Timpl<Args> StructOptUtils for Args where
Args: StructOpt, [src]
impl<Args> StructOptUtils for Args where
Args: StructOpt, [src]fn strict_from_iter(
input: impl IntoIterator<Item = impl Into<OsString> + Clone>
) -> Self[src]
fn strict_from_iter(
input: impl IntoIterator<Item = impl Into<OsString> + Clone>
) -> Self[src]If the flags are invalid or unknown, print error and exit with code 1.
If --help, print help message and exit with code 0.
If --version, print version and exit with code 0.
Otherwise, return parsing result. Read more
fn strict_from_args() -> Self[src]
fn strict_from_args() -> Self[src]Apply parse_strict on main CLI arguments.
fn run_completion_generator(name: &str, bin: &str)[src]
fn run_completion_generator(name: &str, bin: &str)[src]Run completion generator program.
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more