pub trait CheckedMulwhere
Self: Sized,{
// Required method
fn checked_multiply(&self, rhs: Self) -> Option<usize>;
}Expand description
CheckedMul is a trait to capture the built-in checked_mul behavior provided for all intrinsic integer types in Rust, casting to usize. This is intended for computing matrix bounds for storage in a contiguous vector, whose upper-bound size is limited by usize.
Required Methods§
fn checked_multiply(&self, rhs: Self) -> Option<usize>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.