#unwrap #expression #returning #followed #unwrap-err

no-std unwrap_or_do

Unwrap the Result or do an expression followed by returning the result

3 releases

0.1.2 Nov 7, 2022
0.1.1 Sep 28, 2022
0.1.0 Sep 28, 2022

#1966 in Rust patterns

MIT license

5KB
101 lines

Unwrap the Result or do the expression

Associated macros: unwrap_or_break, unwrap_or_continue, unwrap_or_log

This crate is not recommend as let else is stable in Rust 1.65.

No runtime deps

Features