flatten method

Result<T, E> flatten()

Flattens a nested Result type value one level.

Returns:

See also: Rust: Result::flatten()

Implementation

Result<T, E> flatten() => switch (this) {
	Ok(value: Result<T, E> value) => value,
	Err(value: E value) => Err(value)
};