Macro std::option::try

macro try($opt) { ... }

Extract the value or short-circuit the calling function.

When expression is suffixed with ?, this is de-sugared to an invocation of try macro on the expression.

Expands to the following expression

See also try for Result.

Example