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

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

#2920 in Rust patterns

Download history 10/week @ 2024-07-29 1/week @ 2024-08-12 8/week @ 2024-08-19 11/week @ 2024-09-23 6/week @ 2024-09-30

116 downloads per month

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