Skip to main content

checked

Macro checked 

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

Evaluates a checked arithmetic expression as a Result.

A successful expression returns its value. Overflow or another invalid operation returns Error::Arithmetic through a cold error path.