Function regex_automata::util::wire::add

source ·
pub(crate) fn add(
    a: usize,
    b: usize,
    what: &'static str,
) -> Result<usize, DeserializeError>
Expand description

Add the given numbers, and on overflow, return an error that includes ‘what’ in the error message.

This is useful when doing arithmetic with untrusted data.