Struct irx_config::parsers::cmd::Parser
source · pub struct Parser { /* private fields */ }
Expand description
The command-line parser implementation.
Trait Implementations§
source§impl Case for Parser
impl Case for Parser
source§fn is_case_sensitive(&self) -> bool
fn is_case_sensitive(&self) -> bool
Return
true
if case sensitive, otherwise return false
.source§impl Parse for Parser
impl Parse for Parser
source§fn parse(&mut self, _value: &Value) -> AnyResult<Value>
fn parse(&mut self, _value: &Value) -> AnyResult<Value>
Parse data to
Value
structure. The value
parameter could hold merged results from previous parser(s)
call(s). That merged value
could be used to get some parameter(s) for current parse. For example, path to
configuration file could be taken from previous command-line parser results (see FileParser<L>::path_option
or
env::ParserBuilder::prefix_option
). If successful then data return as Value
structure. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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