This is an index of the following types:
The first column is the type's initial character.
Name | Origin | Description | |
---|---|---|---|
M |
err() | Result | Constructs a failure result of some error type E. To construct a failure an exception must be supplied. |
M |
getErr() | Result | Returns the inner error of a failure. This returns null if the result is a success. |
M |
isError() | Result | Returns true if the result is a failure |
M |
isOk() | Result | Returns true if the result is a success |
M |
ok() | Result | Constructs a successful result of some type T. |
C |
Result | Result | Class Result |
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 |