Struct twiggy_opt::Monos [−][src]
pub struct Monos { /* fields omitted */ }
List the generic function monomorphizations that are contributing to code bloat.
Methods
impl Monos
[src]
impl Monos
pub fn new() -> Monos
[src]
pub fn new() -> Monos
Construct a new, default Monos
.
pub fn only_generics(&self) -> bool
[src]
pub fn only_generics(&self) -> bool
Hide individual monomorphizations and only show the generic functions.
pub fn max_generics(&self) -> u32
[src]
pub fn max_generics(&self) -> u32
The maximum number of generics to list.
pub fn max_monos(&self) -> u32
[src]
pub fn max_monos(&self) -> u32
The maximum number of individual monomorphizations to list for each generic function.
pub fn set_only_generics(&mut self, do_it: bool)
[src]
pub fn set_only_generics(&mut self, do_it: bool)
Set whether to hide individual monomorphizations and only show the generic functions.
pub fn set_max_generics(&mut self, max: u32)
[src]
pub fn set_max_generics(&mut self, max: u32)
Set the maximum number of generics to list.
pub fn set_max_monos(&mut self, max: u32)
[src]
pub fn set_max_monos(&mut self, max: u32)
Set the maximum number of individual monomorphizations to list for each generic function.
Trait Implementations
impl Clone for Monos
[src]
impl Clone for Monos
fn clone(&self) -> Monos
[src]
fn clone(&self) -> Monos
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 Monos
[src]
impl Debug for Monos
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 StructOpt for Monos
[src]
impl StructOpt for Monos
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 Default for Monos
[src]
impl Default for Monos
impl CommonCliOptions for Monos
[src]
impl CommonCliOptions for Monos
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.