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§
Required Methods§
Sourcefn flatten_result(self) -> Self::Output
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.