Try

Creates a Try range out of an alias to a function that could throw.

Executing a Try range will produce a Expected!(T, Exception)

You may also call .match directly on the try range.

struct Try (
alias fun
) {
bool empty;
bool resolved;
}

Members

Functions

match
auto match()

Pass two lambdas to the match function. The first one handles the success case and the second one handles the failure case.

See Also

try_

Meta

Since

0.0.1