core::num
core::num::traits::ops::overflowing::OverflowingMul
Performs multiplication with a flag for overflow.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
pub trait OverflowingMul
use core::num::traits::OverflowingMul;
let (result, is_overflow) = 1_u8.overflowing_mul(2_u8);
assert!(result == 2);
assert!(!is_overflow);
fn overflowing_mul(self: T, v: T) -> (T, bool)
Was this page helpful?