Function flatten

Source
pub fn flatten<T, E>(x: Result<Result<T, E>, E>) -> Result<T, E>
Expand description

Flatten a Result<Result<T, E>, E> into a Result<T, E>.

See the nightly Result::flatten.