Package index
-
Result()
stable - The abstract parent class of the
Success
andFailure
classes
-
Success()
stable - A class for representing the value of a successful computation
-
Failure()
stable - A class for representing a failed or stopped computation
-
Option()
- The abstract parent class of the
Some
andNothing
classes
-
Some()
- An object to represent "some value".
-
Nothing()
- A class to represent no-value or nothing.
-
inspect()
stable - Apply a function to a
Result
's value if it is a success
-
inspect_fail()
stable - Apply a function to a
Result
's error if it is a failure
-
expect()
stable - Get the wrapped value from a
Result
orOption
object
-
expect_fail()
stable - Get the wrapped error details from a
Failure
object
-
unwrap()
stable - Get the wrapped value from a
Result
orOption
object
-
unwrap_fail()
stable - Get the wrapped error details from a
Failure
object
-
unwrap_option()
stable - Get the wrapped value from a
Result
, wrapped in anOption
object
-
unwrap_fail_option()
stable - Get the wrapped error from a
Result
, wrapped in anOption
object
-
unwrap_or_default()
stable - Get the wrapped value from a
Result
orOption
object
-
unwrap_or_else()
stable - Get the wrapped value from a
Result
orOption
object
-
result()
- Wrap an existing function to return
Result
objects
-
wrap_in_result()
- Wrap a value in a
Result
object depending on its class.
-
and_then()
stable - Process a success or pass through a failure
-
or_else()
stable - Process a failiure or pass through a success
-
is_result()
stable - Check if an object is a subclass of
Result
-
check_is_result()
stable - Check if an object is a subclass of
Result
-
is_success()
stable - Check if an object is a subclass of
Success
-
is_success_and()
stable - Check if an object is a subclass of
Success
AND a predicate is true
-
is_failure()
stable - Check if an object is a subclass of
Failure
-
is_failure_and()
stable - Check if an object is a subclass of
Failure
AND a predicate is true