Struct wasm_tools::GeneralOpts
source · pub struct GeneralOpts {
pub color: ColorChoice,
/* private fields */
}
Fields§
§color: ColorChoice
Configuration over whether terminal colors are used in output.
Supports one of auto|never|always|always-ansi
. The default is to
detect what to do based on the terminal environment, for example by
using isatty
.
Implementations§
source§impl GeneralOpts
impl GeneralOpts
sourcepub fn init_logger(&self)
pub fn init_logger(&self)
Initializes the logger based on the verbosity level.
Trait Implementations§
source§impl Args for GeneralOpts
impl Args for GeneralOpts
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for GeneralOpts
impl CommandFactory for GeneralOpts
source§impl FromArgMatches for GeneralOpts
impl FromArgMatches for GeneralOpts
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for GeneralOpts
impl Parser for GeneralOpts
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for GeneralOpts
impl RefUnwindSafe for GeneralOpts
impl Send for GeneralOpts
impl Sync for GeneralOpts
impl Unpin for GeneralOpts
impl UnwindSafe for GeneralOpts
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