Trait ClampedMul

Source
pub trait ClampedMul<T, O> {
    // Required method
    fn clamped_mul(self, rhs: T) -> O;
}
Expand description

Multiplication of values into a narrower type with silent value clamping.

Required Methods§

Source

fn clamped_mul(self, rhs: T) -> O

Multiplies self by rhs and clamps the result to fit in O.

Implementations on Foreign Types§

Source§

impl ClampedMul<u16, i16> for u16

Source§

fn clamped_mul(self, rhs: u16) -> i16

Source§

impl ClampedMul<u16, i32> for u16

Source§

fn clamped_mul(self, rhs: u16) -> i32

Source§

impl ClampedMul<u16, u16> for u16

Source§

fn clamped_mul(self, rhs: u16) -> u16

Source§

impl ClampedMul<u16, u32> for u16

Source§

fn clamped_mul(self, rhs: u16) -> u32

Source§

impl ClampedMul<usize, usize> for usize

Source§

fn clamped_mul(self, rhs: usize) -> usize

Implementors§