Struct clap_verbosity_flag::Verbosity
source · [−]pub struct Verbosity<L: LogLevel = ErrorLevel> { /* private fields */ }
Implementations
sourceimpl<L: LogLevel> Verbosity<L>
impl<L: LogLevel> Verbosity<L>
sourcepub fn new(verbose: u8, quiet: u8) -> Self
pub fn new(verbose: u8, quiet: u8) -> Self
Create a new verbosity instance by explicitly setting the values
sourcepub fn log_level_filter(&self) -> LevelFilter
pub fn log_level_filter(&self) -> LevelFilter
Get the log level filter.
Trait Implementations
sourceimpl<L: LogLevel> Args for Verbosity<L>
impl<L: LogLevel> Args for Verbosity<L>
sourcefn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
sourcefn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
sourcefn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the
ArgGroup::id
for this set of argumentssourceimpl<L: LogLevel> FromArgMatches for Verbosity<L>
impl<L: LogLevel> FromArgMatches for Verbosity<L>
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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
.sourcefn 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
.Auto Trait Implementations
impl<L> RefUnwindSafe for Verbosity<L>where
L: RefUnwindSafe,
impl<L> Send for Verbosity<L>where
L: Send,
impl<L> Sync for Verbosity<L>where
L: Sync,
impl<L> Unpin for Verbosity<L>where
L: Unpin,
impl<L> UnwindSafe for Verbosity<L>where
L: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more