Trait TryRem

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

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

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl TryRem for i8

Source§

impl TryRem for i16

Source§

impl TryRem for i32

Source§

impl TryRem for i64

Source§

impl TryRem for i128

Source§

impl TryRem for isize

Source§

impl TryRem for u8

Source§

impl TryRem for u16

Source§

impl TryRem for u32

Source§

impl TryRem for u64

Source§

impl TryRem for u128

Source§

impl TryRem for usize

Source§

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

Source§

type Output = i8

Source§

type Error = <i8 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i16

Source§

type Error = <i16 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i32

Source§

type Error = <i32 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i64

Source§

type Error = <i64 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i128

Source§

type Error = <i128 as TryRem>::Error

Source§

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

Source§

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

Source§

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

Source§

type Output = u8

Source§

type Error = <u8 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u16

Source§

type Error = <u16 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u32

Source§

type Error = <u32 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u64

Source§

type Error = <u64 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u128

Source§

type Error = <u128 as TryRem>::Error

Source§

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

Source§

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

Source§

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

Source§

type Output = i8

Source§

type Error = <i8 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i16

Source§

type Error = <i16 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i32

Source§

type Error = <i32 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i64

Source§

type Error = <i64 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i128

Source§

type Error = <i128 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = isize

Source§

type Error = <isize as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u8

Source§

type Error = <u8 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u16

Source§

type Error = <u16 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u32

Source§

type Error = <u32 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u64

Source§

type Error = <u64 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u128

Source§

type Error = <u128 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = usize

Source§

type Error = <usize as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i8

Source§

type Error = <i8 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i16

Source§

type Error = <i16 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i32

Source§

type Error = <i32 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i64

Source§

type Error = <i64 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = i128

Source§

type Error = <i128 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = isize

Source§

type Error = <isize as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u8

Source§

type Error = <u8 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u16

Source§

type Error = <u16 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u32

Source§

type Error = <u32 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u64

Source§

type Error = <u64 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = u128

Source§

type Error = <u128 as TryRem>::Error

Source§

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

Source§

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

Source§

type Output = usize

Source§

type Error = <usize as TryRem>::Error

Source§

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

Implementors§