pub type Result<T, E = ErrorKind> = Result<T, E>;
Expand description
Alias for a Result
with the error type ErrorKind
by default.
This may be used in all situations that would usually return an std::io::Error
but are
already part of the nu_protocol
crate and can therefore interact with
shell_error::io
directly.
To make programming inside this module easier, you can pass the E
type with another error.
This avoids the annoyance of having a shadowed Result
.
Aliased Type§
pub enum Result<T, E = ErrorKind> {
Ok(T),
Err(E),
}