Struct rustop::Single

source ·
pub struct Single<T>(pub T);
Expand description

A single argument option.

Tuple Fields

0: T

Trait Implementations

Add the value from the command line string.
Return the initial value as a string.
Return a description of a argument of this type. Read more
Called if the option has been specified without argument. Read more
Called if the argument has never been seen. Read more
Return true if the argument can parsed multiple times.

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.