#macro #try #no-alloc #no-std

no-std untry

Kind of the opposite of the ? operator

1 unstable release

0.1.0 Apr 7, 2024

#36 in #try

MIT license

12KB

Untry

Untry provides macros that do the “opposite” of the ? operator, in a way.

See the documentation for details.


lib.rs:

This is a collection of macros that work the “opposite” way of the ? operator. That is, they early-return if the input is successful, and evaluate to the error (if there is any).

This crate is no_std-compatible. There is a nightly-exclusive item guarded behing the nightly feature.

No runtime deps

Features