Rustic.Result (Rustic.Result v0.6.0) View Source
Documentation for RusticResult
.
Link to this section Summary
Types
Describe an Err value
A function that maps a value to a result
Describe an Ok value
Describe a Result type
Functions
Apply a function which returns a result to an Ok result, or propagates the error.
Iterate over Results, will fail at the first Error result.
Wraps a value into an Err result
Iterate over Results, will ignore failed items.
Flatten a result containing another result.
Returns true if the Result is an Err value
Is valid if and only if an Err result is supplied
Returns true if the Result is an Ok value
Is valid if and only if an Ok result is supplied
Apply a function to the value contained in an Ok result, or propagates the error.
Apply a function to the value contained in an Err result, or propagates the Ok result.
Wraps a value into an Ok result
Apply a function which returns a result to an Err result, or propagates the Ok value.
Iterate over Results, returns a tuple of
Unwrap an Ok result, or raise an exception
Unwrap an Err result, or raise an exception
Unwrap an Ok result, or return a default value
Link to this section Types
Link to this section Functions
Specs
Apply a function which returns a result to an Ok result, or propagates the error.
Specs
Iterate over Results, will fail at the first Error result.
Specs
Wraps a value into an Err result
Specs
Iterate over Results, will ignore failed items.
Specs
Flatten a result containing another result.
Specs
Returns true if the Result is an Err value
Is valid if and only if an Err result is supplied
Specs
Returns true if the Result is an Ok value
Is valid if and only if an Ok result is supplied
Specs
Apply a function to the value contained in an Ok result, or propagates the error.
Specs
Apply a function to the value contained in an Err result, or propagates the Ok result.
Specs
Wraps a value into an Ok result
Specs
Apply a function which returns a result to an Err result, or propagates the Ok value.
Specs
Iterate over Results, returns a tuple of:
- Ok result containing the list of Ok values
- Err result containing the list of Err reasons
Specs
Unwrap an Ok result, or raise an exception
Specs
Unwrap an Err result, or raise an exception
Specs
Unwrap an Ok result, or return a default value