Skip to main content

validated

Macro validated 

Source
macro_rules! validated {
    ($($input:tt)+) => { ... };
}
Expand description

Evaluates arithmetic with checks enabled only in debug builds.

Debug builds use checked operations and panic when the expression overflows or is otherwise invalid. Release builds evaluate the expression directly, so callers must ensure every operation is valid.