Applies a function to the success value (if any) and returns the result.
impl<T, E> Result<T, E> {
fn chain<U, F>(self, f: F) -> Result<U, E>
where F: FnOnce(T) -> Result<U, E>,
}| Name | Description |
|---|---|
| f | The function that will be applied to the value. |