[−][src]Trait vec_utils::Try
A stable version of core::ops::Try
.
Associated Types
type Ok
The type of this value when viewed as successful.
type Error
The type of this value when viewed as failed.
Required methods
fn into_result(self) -> Result<Self::Ok, Self::Error>
A return of Ok(t)
means that the
execution should continue normally, and the result of ?
is the
value t
. A return of Err(e)
means that execution should branch
to the innermost enclosing catch
, or return from the function.
fn from_error(v: Self::Error) -> Self
Wrap an error value to construct the composite result. For example,
Result::Err(x)
and Result::from_error(x)
are equivalent.
fn from_ok(v: Self::Ok) -> Self
Wrap an OK value to construct the composite result. For example,
Result::Ok(x)
and Result::from_ok(x)
are equivalent.