Rustic.Result (Rustic.Result v0.4.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
Returns true if the Result is an Ok value
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 Ok results and Err results.
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
Specs
Returns true if the Result is an Ok value
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 results and Err results.
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