Function regex_automata::util::wire::shl

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

Shift a left by b, and on overflow, return an error that includes ‘what’ in the error message.

This is useful when doing arithmetic with untrusted data.