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