Failed result carrying error.
error
Readonly
The error value.
Always true — use this to narrow the union to ErrResult<E>.
true
ErrResult<E>
Always false — use this to narrow the union to ErrResult<E>.
false
Returns this unchanged.
this
Returns an ErrResult with fn(error).
ErrResult
fn(error)
Calls onErr and returns its result.
onErr
Returns fallback.
fallback
Failed result carrying
error.