unwrap_all
With this crate I would like to explore the ergonomics of being able to unwrap multiple levels with one call.
Example unwrap_all!(n_times, expression)
use unwrap_all;
let nested: = Some;
let unpacked = unwrap_all!;
assert_eq!;
Example expect_all!(n_times, message, expression)
Running this function will give you a panic with the message 1 - must fail: 23
, where the 1
tells you how many levels in the panic was caused.
use expect_all;