Trait Rem

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

    // Required method
    fn op_rem(self, rhs: Rhs) -> Self::Output;
}

Required Associated Types§

Source

type Output

The resulting type after applying the % operator.

Required Methods§

Source

fn op_rem(self, rhs: Rhs) -> Self::Output

Performs the % operation.

§Example
assert_eq!(12 % 10, 2);

Implementations on Foreign Types§

Source§

impl Rem for f32

Source§

type Output = f32

Source§

fn op_rem(self, rhs: f32) -> Self::Output

Source§

impl Rem for f64

Source§

type Output = f64

Source§

fn op_rem(self, rhs: f64) -> Self::Output

Source§

impl Rem for i8

Source§

type Output = i8

Source§

fn op_rem(self, rhs: i8) -> Self::Output

Source§

impl Rem for i16

Source§

type Output = i16

Source§

fn op_rem(self, rhs: i16) -> Self::Output

Source§

impl Rem for i32

Source§

type Output = i32

Source§

fn op_rem(self, rhs: i32) -> Self::Output

Source§

impl Rem for i64

Source§

type Output = i64

Source§

fn op_rem(self, rhs: i64) -> Self::Output

Source§

impl Rem for isize

Source§

type Output = isize

Source§

fn op_rem(self, rhs: isize) -> Self::Output

Source§

impl Rem for u8

Source§

type Output = u8

Source§

fn op_rem(self, rhs: u8) -> Self::Output

Source§

impl Rem for u16

Source§

type Output = u16

Source§

fn op_rem(self, rhs: u16) -> Self::Output

Source§

impl Rem for u32

Source§

type Output = u32

Source§

fn op_rem(self, rhs: u32) -> Self::Output

Source§

impl Rem for u64

Source§

type Output = u64

Source§

fn op_rem(self, rhs: u64) -> Self::Output

Source§

impl Rem<&&Bson> for f32

Source§

type Output = f64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for f64

Source§

type Output = f64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for i8

Source§

type Output = i64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for i16

Source§

type Output = i64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for i32

Source§

type Output = i64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for i64

Source§

type Output = i64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for isize

Source§

type Output = i64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for u8

Source§

type Output = u64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for u16

Source§

type Output = u64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for u32

Source§

type Output = u64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&&Bson> for u64

Source§

type Output = u64

Source§

fn op_rem(self, other: &&Value) -> Self::Output

Source§

impl Rem<&Bson> for f32

Source§

type Output = f64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for f64

Source§

type Output = f64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for i8

Source§

type Output = i64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for i16

Source§

type Output = i64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for i32

Source§

type Output = i64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for i64

Source§

type Output = i64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for isize

Source§

type Output = i64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for u8

Source§

type Output = u64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for u16

Source§

type Output = u64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for u32

Source§

type Output = u64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&Bson> for u64

Source§

type Output = u64

Source§

fn op_rem(self, other: &Value) -> Self::Output

Source§

impl Rem<&f32> for &f32

Source§

type Output = f32

Source§

fn op_rem(self, rhs: &f32) -> Self::Output

Source§

impl Rem<&f32> for f32

Source§

type Output = f32

Source§

fn op_rem(self, rhs: &f32) -> Self::Output

Source§

impl Rem<&f64> for &f64

Source§

type Output = f64

Source§

fn op_rem(self, rhs: &f64) -> Self::Output

Source§

impl Rem<&f64> for f64

Source§

type Output = f64

Source§

fn op_rem(self, rhs: &f64) -> Self::Output

Source§

impl Rem<&i8> for &i8

Source§

type Output = i8

Source§

fn op_rem(self, rhs: &i8) -> Self::Output

Source§

impl Rem<&i8> for i8

Source§

type Output = i8

Source§

fn op_rem(self, rhs: &i8) -> Self::Output

Source§

impl Rem<&i16> for &i16

Source§

type Output = i16

Source§

fn op_rem(self, rhs: &i16) -> Self::Output

Source§

impl Rem<&i16> for i16

Source§

type Output = i16

Source§

fn op_rem(self, rhs: &i16) -> Self::Output

Source§

impl Rem<&i32> for &i32

Source§

type Output = i32

Source§

fn op_rem(self, rhs: &i32) -> Self::Output

Source§

impl Rem<&i32> for i32

Source§

type Output = i32

Source§

fn op_rem(self, rhs: &i32) -> Self::Output

Source§

impl Rem<&i64> for &i64

Source§

type Output = i64

Source§

fn op_rem(self, rhs: &i64) -> Self::Output

Source§

impl Rem<&i64> for i64

Source§

type Output = i64

Source§

fn op_rem(self, rhs: &i64) -> Self::Output

Source§

impl Rem<&isize> for &isize

Source§

type Output = isize

Source§

fn op_rem(self, rhs: &isize) -> Self::Output

Source§

impl Rem<&isize> for isize

Source§

type Output = isize

Source§

fn op_rem(self, rhs: &isize) -> Self::Output

Source§

impl Rem<&u8> for &u8

Source§

type Output = u8

Source§

fn op_rem(self, rhs: &u8) -> Self::Output

Source§

impl Rem<&u8> for u8

Source§

type Output = u8

Source§

fn op_rem(self, rhs: &u8) -> Self::Output

Source§

impl Rem<&u16> for &u16

Source§

type Output = u16

Source§

fn op_rem(self, rhs: &u16) -> Self::Output

Source§

impl Rem<&u16> for u16

Source§

type Output = u16

Source§

fn op_rem(self, rhs: &u16) -> Self::Output

Source§

impl Rem<&u32> for &u32

Source§

type Output = u32

Source§

fn op_rem(self, rhs: &u32) -> Self::Output

Source§

impl Rem<&u32> for u32

Source§

type Output = u32

Source§

fn op_rem(self, rhs: &u32) -> Self::Output

Source§

impl Rem<&u64> for &u64

Source§

type Output = u64

Source§

fn op_rem(self, rhs: &u64) -> Self::Output

Source§

impl Rem<&u64> for u64

Source§

type Output = u64

Source§

fn op_rem(self, rhs: &u64) -> Self::Output

Source§

impl Rem<Bson> for f32

Source§

type Output = f64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for f64

Source§

type Output = f64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for i8

Source§

type Output = i64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for i16

Source§

type Output = i64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for i32

Source§

type Output = i64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for i64

Source§

type Output = i64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for isize

Source§

type Output = i64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for u8

Source§

type Output = u64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for u16

Source§

type Output = u64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for u32

Source§

type Output = u64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<Bson> for u64

Source§

type Output = u64

Source§

fn op_rem(self, other: Value) -> Self::Output

Source§

impl Rem<f32> for &f32

Source§

type Output = f32

Source§

fn op_rem(self, rhs: f32) -> Self::Output

Source§

impl Rem<f64> for &f64

Source§

type Output = f64

Source§

fn op_rem(self, rhs: f64) -> Self::Output

Source§

impl Rem<i8> for &i8

Source§

type Output = i8

Source§

fn op_rem(self, rhs: i8) -> Self::Output

Source§

impl Rem<i16> for &i16

Source§

type Output = i16

Source§

fn op_rem(self, rhs: i16) -> Self::Output

Source§

impl Rem<i32> for &i32

Source§

type Output = i32

Source§

fn op_rem(self, rhs: i32) -> Self::Output

Source§

impl Rem<i64> for &i64

Source§

type Output = i64

Source§

fn op_rem(self, rhs: i64) -> Self::Output

Source§

impl Rem<isize> for &isize

Source§

type Output = isize

Source§

fn op_rem(self, rhs: isize) -> Self::Output

Source§

impl Rem<u8> for &u8

Source§

type Output = u8

Source§

fn op_rem(self, rhs: u8) -> Self::Output

Source§

impl Rem<u16> for &u16

Source§

type Output = u16

Source§

fn op_rem(self, rhs: u16) -> Self::Output

Source§

impl Rem<u32> for &u32

Source§

type Output = u32

Source§

fn op_rem(self, rhs: u32) -> Self::Output

Source§

impl Rem<u64> for &u64

Source§

type Output = u64

Source§

fn op_rem(self, rhs: u64) -> Self::Output

Implementors§

Source§

impl Rem for Value

Source§

impl Rem<&&Bson> for &Value

Source§

impl Rem<&&Bson> for Value

Source§

impl Rem<&Bson> for &Value

Source§

impl Rem<&Bson> for Value

Source§

impl Rem<Bson> for &Value

Source§

impl Rem<f32> for Value

Source§

impl Rem<f64> for Value

Source§

impl Rem<i8> for Value

Source§

impl Rem<i16> for Value

Source§

impl Rem<i32> for Value

Source§

impl Rem<i64> for Value

Source§

impl Rem<isize> for Value

Source§

impl Rem<u8> for Value

Source§

impl Rem<u16> for Value

Source§

impl Rem<u32> for Value

Source§

impl Rem<u64> for Value

Source§

impl<'a> Rem<f32> for &'a Value

Source§

impl<'a> Rem<f64> for &'a Value

Source§

impl<'a> Rem<i8> for &'a Value

Source§

impl<'a> Rem<i16> for &'a Value

Source§

impl<'a> Rem<i32> for &'a Value

Source§

impl<'a> Rem<i64> for &'a Value

Source§

impl<'a> Rem<isize> for &'a Value

Source§

impl<'a> Rem<u8> for &'a Value

Source§

impl<'a> Rem<u16> for &'a Value

Source§

impl<'a> Rem<u32> for &'a Value

Source§

impl<'a> Rem<u64> for &'a Value