#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

#2327 in Rust patterns

Download history 105/week @ 2024-04-04 14/week @ 2024-04-11

119 downloads per month

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