Trait FlattenResult

Source
pub trait FlattenResult {
    type Output;

    // Required method
    fn flatten_result(self) -> Self::Output;
}
Expand description

Backport of Result::flatten, see https://github.com/rust-lang/rust/issues/70142.

Required Associated Types§

Source

type Output

The output of the flattening operation.

Required Methods§

Source

fn flatten_result(self) -> Self::Output

Flattens one level.

This function is named flatten_result instead of flatten to avoid name collisions once Result::flatten stabilizes.

Implementations on Foreign Types§

Source§

impl<T, E> FlattenResult for Result<Result<T, E>, E>

Source§

type Output = Result<T, E>

Source§

fn flatten_result(self) -> Self::Output

Implementors§