pub enum ParseVal {
    Bool(bool),
    Num(i64),
    List(Vec<ParseVal>),
    OutStream(OutputFile),
}
Expand description

The value returned from parsing an option.

Variants

Bool(bool)

A boolean option.

Num(i64)

A number option.

List(Vec<ParseVal>)

A list of values.

OutStream(OutputFile)

An output stream (stdout, stderr, file name)

Implementations

Parse a list that should have exactly N elements. If elements are missing, then add None to the end of the list.

Returns an output stream if it is not the null stream

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
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.