#error-message #error #macro #formatting #result #options

nightly ribbons

Library for unwrapping Option and Result types with a formatted error message. (less boilerplate than unwrap_or_else)

3 releases

0.1.2 Mar 7, 2024
0.1.1 Jan 19, 2024
0.1.0 Jan 19, 2024

#1491 in Rust patterns

MPL-2.0 license

8KB
50 lines

ribbons

Crate that provides an unwrap_fmt! macro for unwrapping Options and Results with a formatted message.

That's about it. Not much else to say. Read the docs to learn more.


lib.rs:

This module provides the unwrap_fmt! macro for basically unwrapping either Option or Result with a formatted string.

Read the docs for unwrap_fmt! for more info.

No runtime deps