Skip to main content

require

Macro require 

Source
macro_rules! require {
    ($condition:expr, $($arg:tt)+) => { ... };
}
Expand description

Require a claim condition, declining with an actionable reason when false.

Formatting is evaluated only when the condition fails, keeping the hot supported path allocation-free.