Index

This is an index of the following types:

The first column is the type's initial character.


E

Name Origin Description
M
err() Result Constructs a failure result of some error type E. To construct a failure an exception must be supplied.

G

M
getErr() Result Returns the inner error of a failure. This returns null if the result is a success.

I

M
isError() Result Returns true if the result is a failure
M
isOk() Result Returns true if the result is a success

O

M
ok() Result Constructs a successful result of some type T.

R

C
Result Result Class Result

V

M
value() Result Attempts to extract and return the success value.
M
valueOr() Result Returns the success value if the result was a success. If the result was a failure, then instead of throwing the inner error the fallback value is returned.

_

P
$Result Result
P
$Result Result