Trait TryMul

Source
pub trait TryMul<Rhs = Self> {
    type Output;
    type Error;

    // Required method
    fn try_mul(self, rhs: Rhs) -> Result<Self::Output, Self::Error>;
}
Expand description

Checked multiplication operator which returns a Result to indicate success or failure.

Required Associated Types§

Required Methods§

Source

fn try_mul(self, rhs: Rhs) -> Result<Self::Output, Self::Error>

Implementations on Foreign Types§

Source§

impl TryMul for i8

Source§

impl TryMul for i16

Source§

impl TryMul for i32

Source§

impl TryMul for i64

Source§

impl TryMul for i128

Source§

impl TryMul for isize

Source§

impl TryMul for u8

Source§

impl TryMul for u16

Source§

impl TryMul for u32

Source§

impl TryMul for u64

Source§

impl TryMul for u128

Source§

impl TryMul for usize

Source§

impl<'a> TryMul<i8> for &'a i8

Source§

type Output = i8

Source§

type Error = <i8 as TryMul>::Error

Source§

fn try_mul(self, rhs: i8) -> Result<i8, Self::Error>

Source§

impl<'a> TryMul<i16> for &'a i16

Source§

type Output = i16

Source§

type Error = <i16 as TryMul>::Error

Source§

fn try_mul(self, rhs: i16) -> Result<i16, Self::Error>

Source§

impl<'a> TryMul<i32> for &'a i32

Source§

type Output = i32

Source§

type Error = <i32 as TryMul>::Error

Source§

fn try_mul(self, rhs: i32) -> Result<i32, Self::Error>

Source§

impl<'a> TryMul<i64> for &'a i64

Source§

type Output = i64

Source§

type Error = <i64 as TryMul>::Error

Source§

fn try_mul(self, rhs: i64) -> Result<i64, Self::Error>

Source§

impl<'a> TryMul<i128> for &'a i128

Source§

type Output = i128

Source§

type Error = <i128 as TryMul>::Error

Source§

fn try_mul(self, rhs: i128) -> Result<i128, Self::Error>

Source§

impl<'a> TryMul<isize> for &'a isize

Source§

impl<'a> TryMul<u8> for &'a u8

Source§

type Output = u8

Source§

type Error = <u8 as TryMul>::Error

Source§

fn try_mul(self, rhs: u8) -> Result<u8, Self::Error>

Source§

impl<'a> TryMul<u16> for &'a u16

Source§

type Output = u16

Source§

type Error = <u16 as TryMul>::Error

Source§

fn try_mul(self, rhs: u16) -> Result<u16, Self::Error>

Source§

impl<'a> TryMul<u32> for &'a u32

Source§

type Output = u32

Source§

type Error = <u32 as TryMul>::Error

Source§

fn try_mul(self, rhs: u32) -> Result<u32, Self::Error>

Source§

impl<'a> TryMul<u64> for &'a u64

Source§

type Output = u64

Source§

type Error = <u64 as TryMul>::Error

Source§

fn try_mul(self, rhs: u64) -> Result<u64, Self::Error>

Source§

impl<'a> TryMul<u128> for &'a u128

Source§

type Output = u128

Source§

type Error = <u128 as TryMul>::Error

Source§

fn try_mul(self, rhs: u128) -> Result<u128, Self::Error>

Source§

impl<'a> TryMul<usize> for &'a usize

Source§

impl<'a, 'r> TryMul<&'r i8> for &'a i8

Source§

type Output = i8

Source§

type Error = <i8 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i8) -> Result<i8, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r i16> for &'a i16

Source§

type Output = i16

Source§

type Error = <i16 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i16) -> Result<i16, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r i32> for &'a i32

Source§

type Output = i32

Source§

type Error = <i32 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i32) -> Result<i32, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r i64> for &'a i64

Source§

type Output = i64

Source§

type Error = <i64 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i64) -> Result<i64, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r i128> for &'a i128

Source§

type Output = i128

Source§

type Error = <i128 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i128) -> Result<i128, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r isize> for &'a isize

Source§

type Output = isize

Source§

type Error = <isize as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r isize) -> Result<isize, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r u8> for &'a u8

Source§

type Output = u8

Source§

type Error = <u8 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u8) -> Result<u8, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r u16> for &'a u16

Source§

type Output = u16

Source§

type Error = <u16 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u16) -> Result<u16, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r u32> for &'a u32

Source§

type Output = u32

Source§

type Error = <u32 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u32) -> Result<u32, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r u64> for &'a u64

Source§

type Output = u64

Source§

type Error = <u64 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u64) -> Result<u64, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r u128> for &'a u128

Source§

type Output = u128

Source§

type Error = <u128 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u128) -> Result<u128, Self::Error>

Source§

impl<'a, 'r> TryMul<&'r usize> for &'a usize

Source§

type Output = usize

Source§

type Error = <usize as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r usize) -> Result<usize, Self::Error>

Source§

impl<'r> TryMul<&'r i8> for i8

Source§

type Output = i8

Source§

type Error = <i8 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i8) -> Result<i8, Self::Error>

Source§

impl<'r> TryMul<&'r i16> for i16

Source§

type Output = i16

Source§

type Error = <i16 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i16) -> Result<i16, Self::Error>

Source§

impl<'r> TryMul<&'r i32> for i32

Source§

type Output = i32

Source§

type Error = <i32 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i32) -> Result<i32, Self::Error>

Source§

impl<'r> TryMul<&'r i64> for i64

Source§

type Output = i64

Source§

type Error = <i64 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i64) -> Result<i64, Self::Error>

Source§

impl<'r> TryMul<&'r i128> for i128

Source§

type Output = i128

Source§

type Error = <i128 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r i128) -> Result<i128, Self::Error>

Source§

impl<'r> TryMul<&'r isize> for isize

Source§

type Output = isize

Source§

type Error = <isize as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r isize) -> Result<isize, Self::Error>

Source§

impl<'r> TryMul<&'r u8> for u8

Source§

type Output = u8

Source§

type Error = <u8 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u8) -> Result<u8, Self::Error>

Source§

impl<'r> TryMul<&'r u16> for u16

Source§

type Output = u16

Source§

type Error = <u16 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u16) -> Result<u16, Self::Error>

Source§

impl<'r> TryMul<&'r u32> for u32

Source§

type Output = u32

Source§

type Error = <u32 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u32) -> Result<u32, Self::Error>

Source§

impl<'r> TryMul<&'r u64> for u64

Source§

type Output = u64

Source§

type Error = <u64 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u64) -> Result<u64, Self::Error>

Source§

impl<'r> TryMul<&'r u128> for u128

Source§

type Output = u128

Source§

type Error = <u128 as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r u128) -> Result<u128, Self::Error>

Source§

impl<'r> TryMul<&'r usize> for usize

Source§

type Output = usize

Source§

type Error = <usize as TryMul>::Error

Source§

fn try_mul(self, rhs: &'r usize) -> Result<usize, Self::Error>

Implementors§