#deprecated #try #blocks #stable #macro #block #feature

try-blocks

macro to emulate the upcoming try block feature on stable

1 unstable release

0.1.4 Oct 10, 2022
0.1.3 Jun 18, 2022
0.1.2 Jun 18, 2022
0.1.1 Jun 18, 2022
0.1.0 Jun 18, 2022

#2586 in Rust patterns

MIT license

6KB
73 lines

try-blocks

Notice

This crate has been moved/renamed to tryvial. You should use that instead.


Macro for stable try blocks that performs Ok-wrapping, and otherwise tries to achieve feature parity with RFC 1859. The macro is compatible with any type that implements the unstable Try trait through the use of type magic.

This crate is no_std compatible.

License: MIT


lib.rs:

Notice

This crate has been moved/renamed to tryvial. You should use that instead.


Macro for stable try blocks that performs Ok-wrapping, and otherwise tries to achieve feature parity with RFC 1859. The macro is compatible with any type that implements the unstable Try trait through the use of type magic.

This crate is no_std compatible.

No runtime deps