Searched refs:ERR_ARITHMETIC_OVERFLOW (Results 1 – 1 of 1) sorted by relevance
57 const ERR_ARITHMETIC_OVERFLOW: &str = "Arithmetic Overflow"; constant253 Ok(val.try_into().map_err(|_| ERR_ARITHMETIC_OVERFLOW)?) in to_usize()258 Ok(to_usize(lhs)?.checked_add(to_usize(rhs)?).ok_or(ERR_ARITHMETIC_OVERFLOW)?) in usize_add()263 Ok(val.try_into().map_err(|_| ERR_ARITHMETIC_OVERFLOW)?) in to_u64()268 Ok(to_u64(lhs)?.checked_add(to_u64(rhs)?).ok_or(ERR_ARITHMETIC_OVERFLOW)?) in u64_add()273 Ok(to_u64(lhs)?.checked_mul(to_u64(rhs)?).ok_or(ERR_ARITHMETIC_OVERFLOW)?) in u64_mul()