True Myth / result
result
A Result<T, E>
is a type representing the value result of a synchronous operation which may fail, with a successful value of type T
or an error of type E
.
If the result is a success, it is Ok(value)
. If the result is a failure, it is Err(reason)
.
For a deep dive on the type, see the guide.
Classes
Interfaces
Type Aliases
Variables
Functions
- and
- andThen
- ap
- equals
- isErr
- isInstance
- isOk
- map
- mapErr
- mapOr
- mapOrElse
- match
- or
- orElse
- safe
- toJSON
- toString
- tryOr
- tryOrElse
- unwrapOr
- unwrapOrElse
References
default
Renames and re-exports Result