pub struct ArgMap {
    pub boolean: HashSet<String>,
}

Fields

boolean: HashSet<String>

Implementations

Create a new ArgMap instance.

Set a key to be treated as a boolean argument, where an argument that follows a boolean argument will not be treated as the key’s value.

Set multiple keys to be treated as boolean arguments, where an argument that follows a boolean argument will not be treated as the key’s value.

Parse an iterator of string arguments into a 2-tuple of positional arguments and a HashMap mapping String keys to Vec values.

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.