Macro claym::assert_matches
source · macro_rules! assert_matches { ($expression:expr, $($pattern:pat_param)|+ $(if $guard:expr)? $(,)?) => { ... }; ($expression:expr, $($pattern:pat_param)|+ $(if $guard:expr)?, $($arg:tt)+) => { ... }; }
Expand description
Asserts that expression matches any of the given variants.