[][src]Macro glsp::ensure

macro_rules! ensure {
    ($condition:expr) => { ... };
    ($condition:expr, $($arg:tt)*) => { ... };
}

Tests a condition, returning an error if the result is false.

The first argument must be an expression of type bool. If it evaluates to false, the remaining arguments are all passed to bail!. If it evaluates to true, those arguments aren't evaluated at all.