-
class
Indicates that an operation has failed.
class
Indicates that an operation has been completed successfully.
Returns the provided argument if the result is
Ok
and propagates
the original
Err
otherwise.
Apply a fallible operation to the wrapped value if the result is
Ok
.
Apply a transformation to the wrapped value if the result is
Ok
.
Apply a transformation to the wrapped value if the result is an
Err
.
Returns the provided argument if the result is an
Err
and
propagates the original
Ok
value otherwise.
Apply a fallible operation to the wrapped value if the result is an
Err
.
Attempts to execute a fallible operation and returns any exceptions
thrown during execution as the error type.
Returns the provided argument if the result is
Ok
and propagates
the original
Err
otherwise.
Returns the provided argument if the result is an
Err
and
propagates the original
Ok
value otherwise.
Apply a fallible operation to the wrapped value if the result is
Ok
.
Apply a fallible operation to the wrapped value if the result is an
Err
.