Skip to main content

ArgResult

Type Alias ArgResult 

Source
pub type ArgResult<T> = Result<Option<T>, String>;
Expand description

Ok(None) = absent, Ok(Some(v)) = present and usable, Err = present but not convertible to the declared type.

Aliased Type§

pub enum ArgResult<T> {
    Ok(Option<T>),
    Err(String),
}

Variants§

§1.0.0

Ok(Option<T>)

Contains the success value

§1.0.0

Err(String)

Contains the error value