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§
Trait Implementations§
Source§impl<T> ArgumentResultExt<T> for ArgumentResult<T>
impl<T> ArgumentResultExt<T> for ArgumentResult<T>
Source§fn with_path_prefix(self, prefix: &str) -> ArgumentResult<T>
fn with_path_prefix(self, prefix: &str) -> ArgumentResult<T>
Prefixes only the error branch and leaves success values untouched.