macro_rules! ensure { ($cond:expr, $err:expr) => { ... }; }
Expand description
crate::ensure is a short-hand for bubbling up errors in the case of a condition not being met.
macro_rules! ensure { ($cond:expr, $err:expr) => { ... }; }
crate::ensure is a short-hand for bubbling up errors in the case of a condition not being met.