pub type ArgumentResult<T> = Result<T, ArgumentError>;Expand description
The result of validating an argument, carrying ArgumentError on failure.
§Type Parameters
T: The value produced when argument validation succeeds.
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.