Skip to main content

ArgumentResult

Type Alias ArgumentResult 

Source
pub type ArgumentResult<T> = Result<T, ArgumentError>;
Expand description

Result type returned by argument validation operations.

Aliased Type§

pub enum ArgumentResult<T> {
    Ok(T),
    Err(ArgumentError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ArgumentError)

Contains the error value

Trait Implementations§

Source§

impl<T> ArgumentResultExt<T> for ArgumentResult<T>

Source§

fn with_path_prefix(self, prefix: &str) -> ArgumentResult<T>

Prefixes only the error branch and leaves success values untouched.