Macro expect
expect!() { /* proc-macro */ }
Expand description
This is an alias for defmt’s unwrap
macro which supports messages like std’s except.
use defmt::expect;
let x = result.expect(&format!("text {:?}", arg));
let x = expect!(result, "text {:?}", arg); // arg must be implement `Format`
For the complete documentation see that of defmt’s unwrap macro.