macro_rules! ensure { ($cond:expr, $kind:expr, $msg:literal $(,)?) => { ... }; ($cond:expr, $kind:expr, dicate $msg:expr $(,)?) => { ... }; ($cond:expr, $kind:expr, dicate $msg:expr, $($arg:tt)*) => { ... }; }
Expand description
Return early with an error if a condition is not satisfied.