Provide a common API across `Option` and the `Ok` and `Err` variants of `Result`.