Struct twiggy_opt::Top [−][src]
pub struct Top { /* fields omitted */ }
List the top code size offenders in a binary.
Methods
impl Top
[src]
impl Top
pub fn new() -> Top
[src]
pub fn new() -> Top
Construct a new, default Top
.
pub fn number(&self) -> u32
[src]
pub fn number(&self) -> u32
The maximum number of items to display.
pub fn retaining_paths(&self) -> bool
[src]
pub fn retaining_paths(&self) -> bool
Display retaining paths.
pub fn retained(&self) -> bool
[src]
pub fn retained(&self) -> bool
Sort list by retained size, rather than shallow size.
pub fn set_number(&mut self, n: u32)
[src]
pub fn set_number(&mut self, n: u32)
Set the maximum number of items to display.
pub fn set_retaining_paths(&mut self, do_it: bool)
[src]
pub fn set_retaining_paths(&mut self, do_it: bool)
Set whether to display and compute retaining paths.
pub fn set_retained(&mut self, do_it: bool)
[src]
pub fn set_retained(&mut self, do_it: bool)
Set whether to sort list by retained size, rather than shallow size.
Trait Implementations
impl Clone for Top
[src]
impl Clone for Top
fn clone(&self) -> Top
[src]
fn clone(&self) -> Top
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Top
[src]
impl Debug for Top
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Top
[src]
impl Default for Top
impl StructOpt for Top
[src]
impl StructOpt for Top
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
Returns the corresponding clap::App
.
fn from_clap(matches: &ArgMatches) -> Self
[src]
fn from_clap(matches: &ArgMatches) -> Self
Creates the struct from clap::ArgMatches
. It cannot fail with a parameter generated by clap
by construction. Read more
fn from_args() -> Self
[src]
fn from_args() -> Self
Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. 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,
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,
Gets the struct from any iterator such as a Vec
of your making. Read more
impl CommonCliOptions for Top
[src]
impl CommonCliOptions for Top
fn input(&self) -> &Path
[src]
fn input(&self) -> &Path
Get the input file path.
fn output_destination(&self) -> &OutputDestination
[src]
fn output_destination(&self) -> &OutputDestination
Get the output destination.
fn output_format(&self) -> OutputFormat
[src]
fn output_format(&self) -> OutputFormat
Get the output format.