pub struct BoolArgument<S> { /* private fields */ }
Expand description

Boolean argument parser.

This parser has no fields because it simply parses either "true" or "false“.

Trait Implementations

Usage that is returned.
Return a new SingleUsage, this represents the path from the root up until this parser. Read more
Where the magic happens! This is what ends up extracting type A from the raw string input. Read more
The returned MultipleUsage iterator.
Return a new MultipleUsage based on self (without consuming self).
Branching parser used by this type.
Returns the braching parser Self::Output initialized with self and a child argument. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.