#try #features #no-alloc #try-trait-v2 #try-trait #try-traits

no-std stable_try_trait_v2

A simple stable implementation of the Try, FromResidual, and Residual traits under the try_trait_v2 feature

1 stable release

1.75.1 Jan 2, 2024

#145 in No standard library

50 downloads per month

Apache-2.0 OR MIT

10KB
191 lines

stable_try_trait_v2

A simple stable implementation of the Try, FromResidual, and Residual traits under the try_trait_v2 feature. (tracking issue #84277)

A try_!() macro is also provided, which helps replace the ? operator.

The major and minor version of this crate is the same as the version of stable rust that it maintains parity with.

All attributions should go to the original Rust contributors. Contact me for any misattributions.


lib.rs:

A simple stable replacement for the unstable Try, FromResidual, and Residual traits under the try_trait_v2 feature

No runtime deps