Debian Codegraph @

src/assert_matches.rs

raw symbols SCIP
1 macro_rules! assert_matches {
2 ($expression:expr, $pattern:pat $( if $guard:expr )?) => {
3 match $expression {
4 $pattern $( if $guard )? => {}
5 left => panic!(
6 "assertion failed: (left ~= right)\n left: `{:?}`\n right: `{}`",
7 left,
8 stringify!($pattern $(if $guard)?)
9 ),
10 }
11 }
12 }