flattenNestedSuccess

Flattens a nested Outcome from inside the Success state into a single Outcome.

The returned error type is the nearest common AncestorError of EmbeddedError and OuterError.

Parameters

Ok

The Success value type.

EmbeddedError

The Failure error type nested inside the Success state.

OuterError

The Failure error type of the outer Outcome.

AncestorError

The nearest common ancestor of EmbeddedError and OuterError.

See also