DefaultedArgResult

Type Alias DefaultedArgResult 

Source
pub type DefaultedArgResult<T> = Result<T, <T as ArgumentType>::Error>;
Expand description

The type returned when retrieving an argument with a default value.

Aliased Type§

pub enum DefaultedArgResult<T> {
    Ok(T),
    Err(<T as ArgumentType>::Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(<T as ArgumentType>::Error)

Contains the error value