Trait otter_api_tests::imports::failure::_core::ops::Rem1.0.0[][src]

pub trait Rem<Rhs = Self> {
    type Output;
    #[must_use]
    fn rem(self, rhs: Rhs) -> Self::Output;
}
Expand description

The remainder operator %.

Note that Rhs is Self by default, but this is not mandatory.

Examples

This example implements Rem on a SplitSlice object. After Rem is implemented, one can use the % operator to find out what the remaining elements of the slice would be after splitting it into equal slices of a given length.

use std::ops::Rem;

#[derive(PartialEq, Debug)]
struct SplitSlice<'a, T: 'a> {
    slice: &'a [T],
}

impl<'a, T> Rem<usize> for SplitSlice<'a, T> {
    type Output = Self;

    fn rem(self, modulus: usize) -> Self::Output {
        let len = self.slice.len();
        let rem = len % modulus;
        let start = len - rem;
        Self {slice: &self.slice[start..]}
    }
}

// If we were to divide &[0, 1, 2, 3, 4, 5, 6, 7] into slices of size 3,
// the remainder would be &[6, 7].
assert_eq!(SplitSlice { slice: &[0, 1, 2, 3, 4, 5, 6, 7] } % 3,
           SplitSlice { slice: &[6, 7] });

Associated Types

type Output[src]

The resulting type after applying the % operator.

Required methods

#[must_use]
fn rem(self, rhs: Rhs) -> Self::Output
[src]

Performs the % operation.

Example

assert_eq!(12 % 10, 2);

Implementations on Foreign Types

impl Rem<i16> for i16[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

type Output = i16

pub fn rem(self, other: i16) -> i16[src]

impl<'a> Rem<f32> for &'a f32[src]

type Output = <f32 as Rem<f32>>::Output

pub fn rem(self, other: f32) -> <f32 as Rem<f32>>::Output[src]

impl Rem<i8> for i8[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

type Output = i8

pub fn rem(self, other: i8) -> i8[src]

impl<'_> Rem<&'_ u128> for u128[src]

type Output = <u128 as Rem<u128>>::Output

pub fn rem(self, other: &u128) -> <u128 as Rem<u128>>::Output[src]

impl Rem<u16> for u16[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

type Output = u16

pub fn rem(self, other: u16) -> u16[src]

impl Rem<NonZeroUsize> for usize[src]

pub fn rem(self, other: NonZeroUsize) -> usize[src]

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

type Output = usize

impl<'_> Rem<&'_ i8> for i8[src]

type Output = <i8 as Rem<i8>>::Output

pub fn rem(self, other: &i8) -> <i8 as Rem<i8>>::Output[src]

impl Rem<u128> for u128[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

type Output = u128

pub fn rem(self, other: u128) -> u128[src]

impl<'a> Rem<u16> for &'a u16[src]

type Output = <u16 as Rem<u16>>::Output

pub fn rem(self, other: u16) -> <u16 as Rem<u16>>::Output[src]

impl Rem<u8> for u8[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

type Output = u8

pub fn rem(self, other: u8) -> u8[src]

impl Rem<NonZeroU128> for u128[src]

pub fn rem(self, other: NonZeroU128) -> u128[src]

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

type Output = u128

impl<'a> Rem<u64> for &'a u64[src]

type Output = <u64 as Rem<u64>>::Output

pub fn rem(self, other: u64) -> <u64 as Rem<u64>>::Output[src]

impl<'_, '_> Rem<&'_ f64> for &'_ f64[src]

type Output = <f64 as Rem<f64>>::Output

pub fn rem(self, other: &f64) -> <f64 as Rem<f64>>::Output[src]

impl<'_, '_> Rem<&'_ f32> for &'_ f32[src]

type Output = <f32 as Rem<f32>>::Output

pub fn rem(self, other: &f32) -> <f32 as Rem<f32>>::Output[src]

impl<'_> Rem<&'_ i64> for i64[src]

type Output = <i64 as Rem<i64>>::Output

pub fn rem(self, other: &i64) -> <i64 as Rem<i64>>::Output[src]

impl Rem<usize> for usize[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

type Output = usize

pub fn rem(self, other: usize) -> usize[src]

impl Rem<NonZeroU32> for u32[src]

pub fn rem(self, other: NonZeroU32) -> u32[src]

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

type Output = u32

impl<'a> Rem<u8> for &'a u8[src]

type Output = <u8 as Rem<u8>>::Output

pub fn rem(self, other: u8) -> <u8 as Rem<u8>>::Output[src]

impl Rem<i64> for i64[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

type Output = i64

pub fn rem(self, other: i64) -> i64[src]

impl<'_, '_> Rem<&'_ u64> for &'_ u64[src]

type Output = <u64 as Rem<u64>>::Output

pub fn rem(self, other: &u64) -> <u64 as Rem<u64>>::Output[src]

impl Rem<NonZeroU8> for u8[src]

pub fn rem(self, other: NonZeroU8) -> u8[src]

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

type Output = u8

impl<'_> Rem<&'_ usize> for usize[src]

type Output = <usize as Rem<usize>>::Output

pub fn rem(self, other: &usize) -> <usize as Rem<usize>>::Output[src]

impl Rem<u32> for u32[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

type Output = u32

pub fn rem(self, other: u32) -> u32[src]

impl<'_, '_> Rem<&'_ isize> for &'_ isize[src]

type Output = <isize as Rem<isize>>::Output

pub fn rem(self, other: &isize) -> <isize as Rem<isize>>::Output[src]

impl<'a> Rem<i128> for &'a i128[src]

type Output = <i128 as Rem<i128>>::Output

pub fn rem(self, other: i128) -> <i128 as Rem<i128>>::Output[src]

impl<'_, '_> Rem<&'_ u16> for &'_ u16[src]

type Output = <u16 as Rem<u16>>::Output

pub fn rem(self, other: &u16) -> <u16 as Rem<u16>>::Output[src]

impl<'_> Rem<&'_ u16> for u16[src]

type Output = <u16 as Rem<u16>>::Output

pub fn rem(self, other: &u16) -> <u16 as Rem<u16>>::Output[src]

impl<'a> Rem<usize> for &'a usize[src]

type Output = <usize as Rem<usize>>::Output

pub fn rem(self, other: usize) -> <usize as Rem<usize>>::Output[src]

impl<'_> Rem<&'_ i16> for i16[src]

type Output = <i16 as Rem<i16>>::Output

pub fn rem(self, other: &i16) -> <i16 as Rem<i16>>::Output[src]

impl<'a> Rem<isize> for &'a isize[src]

type Output = <isize as Rem<isize>>::Output

pub fn rem(self, other: isize) -> <isize as Rem<isize>>::Output[src]

impl<'_> Rem<&'_ u8> for u8[src]

type Output = <u8 as Rem<u8>>::Output

pub fn rem(self, other: &u8) -> <u8 as Rem<u8>>::Output[src]

impl<'a> Rem<u32> for &'a u32[src]

type Output = <u32 as Rem<u32>>::Output

pub fn rem(self, other: u32) -> <u32 as Rem<u32>>::Output[src]

impl<'_> Rem<&'_ f64> for f64[src]

type Output = <f64 as Rem<f64>>::Output

pub fn rem(self, other: &f64) -> <f64 as Rem<f64>>::Output[src]

impl<'_, '_> Rem<&'_ u128> for &'_ u128[src]

type Output = <u128 as Rem<u128>>::Output

pub fn rem(self, other: &u128) -> <u128 as Rem<u128>>::Output[src]

impl<'_, '_> Rem<&'_ i32> for &'_ i32[src]

type Output = <i32 as Rem<i32>>::Output

pub fn rem(self, other: &i32) -> <i32 as Rem<i32>>::Output[src]

impl<'a> Rem<u128> for &'a u128[src]

type Output = <u128 as Rem<u128>>::Output

pub fn rem(self, other: u128) -> <u128 as Rem<u128>>::Output[src]

impl Rem<NonZeroU16> for u16[src]

pub fn rem(self, other: NonZeroU16) -> u16[src]

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

type Output = u16

impl<'a> Rem<i16> for &'a i16[src]

type Output = <i16 as Rem<i16>>::Output

pub fn rem(self, other: i16) -> <i16 as Rem<i16>>::Output[src]

impl<'_> Rem<&'_ i128> for i128[src]

type Output = <i128 as Rem<i128>>::Output

pub fn rem(self, other: &i128) -> <i128 as Rem<i128>>::Output[src]

impl<'_> Rem<&'_ isize> for isize[src]

type Output = <isize as Rem<isize>>::Output

pub fn rem(self, other: &isize) -> <isize as Rem<isize>>::Output[src]

impl<'_, '_> Rem<&'_ i64> for &'_ i64[src]

type Output = <i64 as Rem<i64>>::Output

pub fn rem(self, other: &i64) -> <i64 as Rem<i64>>::Output[src]

impl<'_, '_> Rem<&'_ u32> for &'_ u32[src]

type Output = <u32 as Rem<u32>>::Output

pub fn rem(self, other: &u32) -> <u32 as Rem<u32>>::Output[src]

impl Rem<u64> for u64[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0.

type Output = u64

pub fn rem(self, other: u64) -> u64[src]

impl<'a> Rem<f64> for &'a f64[src]

type Output = <f64 as Rem<f64>>::Output

pub fn rem(self, other: f64) -> <f64 as Rem<f64>>::Output[src]

impl<'_, '_> Rem<&'_ i16> for &'_ i16[src]

type Output = <i16 as Rem<i16>>::Output

pub fn rem(self, other: &i16) -> <i16 as Rem<i16>>::Output[src]

impl Rem<f64> for f64[src]

The remainder from the division of two floats.

The remainder has the same sign as the dividend and is computed as: x - (x / y).trunc() * y.

Examples

let x: f32 = 50.50;
let y: f32 = 8.125;
let remainder = x - (x / y).trunc() * y;

// The answer to both operations is 1.75
assert_eq!(x % y, remainder);

type Output = f64

pub fn rem(self, other: f64) -> f64[src]

impl<'_, '_> Rem<&'_ i8> for &'_ i8[src]

type Output = <i8 as Rem<i8>>::Output

pub fn rem(self, other: &i8) -> <i8 as Rem<i8>>::Output[src]

impl<'_> Rem<&'_ u64> for u64[src]

type Output = <u64 as Rem<u64>>::Output

pub fn rem(self, other: &u64) -> <u64 as Rem<u64>>::Output[src]

impl<'_, '_> Rem<&'_ i128> for &'_ i128[src]

type Output = <i128 as Rem<i128>>::Output

pub fn rem(self, other: &i128) -> <i128 as Rem<i128>>::Output[src]

impl Rem<f32> for f32[src]

The remainder from the division of two floats.

The remainder has the same sign as the dividend and is computed as: x - (x / y).trunc() * y.

Examples

let x: f32 = 50.50;
let y: f32 = 8.125;
let remainder = x - (x / y).trunc() * y;

// The answer to both operations is 1.75
assert_eq!(x % y, remainder);

type Output = f32

pub fn rem(self, other: f32) -> f32[src]

impl<'a> Rem<i32> for &'a i32[src]

type Output = <i32 as Rem<i32>>::Output

pub fn rem(self, other: i32) -> <i32 as Rem<i32>>::Output[src]

impl Rem<i128> for i128[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

type Output = i128

pub fn rem(self, other: i128) -> i128[src]

impl<'_> Rem<&'_ i32> for i32[src]

type Output = <i32 as Rem<i32>>::Output

pub fn rem(self, other: &i32) -> <i32 as Rem<i32>>::Output[src]

impl<'_, '_> Rem<&'_ u8> for &'_ u8[src]

type Output = <u8 as Rem<u8>>::Output

pub fn rem(self, other: &u8) -> <u8 as Rem<u8>>::Output[src]

impl Rem<i32> for i32[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

type Output = i32

pub fn rem(self, other: i32) -> i32[src]

impl Rem<NonZeroU64> for u64[src]

pub fn rem(self, other: NonZeroU64) -> u64[src]

This operation satisfies n % d == n - (n / d) * d, and cannot panic.

type Output = u64

impl<'_> Rem<&'_ f32> for f32[src]

type Output = <f32 as Rem<f32>>::Output

pub fn rem(self, other: &f32) -> <f32 as Rem<f32>>::Output[src]

impl Rem<isize> for isize[src]

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

type Output = isize

pub fn rem(self, other: isize) -> isize[src]

impl<'_, '_> Rem<&'_ usize> for &'_ usize[src]

type Output = <usize as Rem<usize>>::Output

pub fn rem(self, other: &usize) -> <usize as Rem<usize>>::Output[src]

impl<'a> Rem<i64> for &'a i64[src]

type Output = <i64 as Rem<i64>>::Output

pub fn rem(self, other: i64) -> <i64 as Rem<i64>>::Output[src]

impl<'a> Rem<i8> for &'a i8[src]

type Output = <i8 as Rem<i8>>::Output

pub fn rem(self, other: i8) -> <i8 as Rem<i8>>::Output[src]

impl<'_> Rem<&'_ u32> for u32[src]

type Output = <u32 as Rem<u32>>::Output

pub fn rem(self, other: &u32) -> <u32 as Rem<u32>>::Output[src]

impl<'a, 'b, T> Rem<&'b T> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, other: &'b T) -> Ratio<T>[src]

impl<T> Rem<T> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, rhs: T) -> Ratio<T>[src]

impl<'a, 'b, T> Rem<&'b Ratio<T>> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, other: &'b Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Rem<&'a T> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, other: &T) -> Ratio<T>[src]

impl<'a, T> Rem<Ratio<T>> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, other: Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Rem<&'a Ratio<T>> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, other: &Ratio<T>) -> Ratio<T>[src]

impl<'a, T> Rem<T> for &'a Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, other: T) -> Ratio<T>[src]

impl<T> Rem<Ratio<T>> for Ratio<T> where
    T: Clone + Integer
[src]

type Output = Ratio<T>

pub fn rem(self, rhs: Ratio<T>) -> Ratio<T>[src]

impl<'a, 'b> Rem<&'b BigNumRef> for &'a BigNum[src]

type Output = BigNum

pub fn rem(self, oth: &BigNumRef) -> BigNum[src]

impl<'a, 'b> Rem<&'b BigNumRef> for &'a BigNumRef[src]

type Output = BigNum

pub fn rem(self, oth: &'b BigNumRef) -> BigNum[src]

impl<'a, 'b> Rem<&'b BigNum> for &'a BigNum[src]

type Output = BigNum

pub fn rem(self, oth: &BigNum) -> BigNum[src]

impl<'a, 'b> Rem<&'b BigNum> for &'a BigNumRef[src]

type Output = BigNum

pub fn rem(self, oth: &BigNum) -> BigNum[src]

Implementors

impl Rem<usize> for LibInBundleI[src]

type Output = LibInBundleI

pub fn rem(self, other: usize) -> LibInBundleI[src]

impl Rem<usize> for DescId[src]

type Output = DescId

pub fn rem(self, other: usize) -> DescId[src]

impl Rem<usize> for SvgId[src]

type Output = SvgId

pub fn rem(self, other: usize) -> SvgId[src]

impl Rem<usize> for FaceId[src]

type Output = FaceId

pub fn rem(self, other: usize) -> FaceId[src]

impl Rem<usize> for Notch[src]

type Output = Notch

pub fn rem(self, other: usize) -> Notch[src]

impl Rem<Wrapping<i8>> for Wrapping<i8>1.7.0[src]

type Output = Wrapping<i8>

pub fn rem(self, other: Wrapping<i8>) -> Wrapping<i8>[src]

impl Rem<Wrapping<i16>> for Wrapping<i16>1.7.0[src]

type Output = Wrapping<i16>

pub fn rem(self, other: Wrapping<i16>) -> Wrapping<i16>[src]

impl Rem<Wrapping<i32>> for Wrapping<i32>1.7.0[src]

type Output = Wrapping<i32>

pub fn rem(self, other: Wrapping<i32>) -> Wrapping<i32>[src]

impl Rem<Wrapping<i64>> for Wrapping<i64>1.7.0[src]

type Output = Wrapping<i64>

pub fn rem(self, other: Wrapping<i64>) -> Wrapping<i64>[src]

impl Rem<Wrapping<i128>> for Wrapping<i128>1.7.0[src]

type Output = Wrapping<i128>

pub fn rem(self, other: Wrapping<i128>) -> Wrapping<i128>[src]

impl Rem<Wrapping<isize>> for Wrapping<isize>1.7.0[src]

type Output = Wrapping<isize>

pub fn rem(self, other: Wrapping<isize>) -> Wrapping<isize>[src]

impl Rem<Wrapping<u8>> for Wrapping<u8>1.7.0[src]

type Output = Wrapping<u8>

pub fn rem(self, other: Wrapping<u8>) -> Wrapping<u8>[src]

impl Rem<Wrapping<u16>> for Wrapping<u16>1.7.0[src]

type Output = Wrapping<u16>

pub fn rem(self, other: Wrapping<u16>) -> Wrapping<u16>[src]

impl Rem<Wrapping<u32>> for Wrapping<u32>1.7.0[src]

type Output = Wrapping<u32>

pub fn rem(self, other: Wrapping<u32>) -> Wrapping<u32>[src]

impl Rem<Wrapping<u64>> for Wrapping<u64>1.7.0[src]

type Output = Wrapping<u64>

pub fn rem(self, other: Wrapping<u64>) -> Wrapping<u64>[src]

impl Rem<Wrapping<u128>> for Wrapping<u128>1.7.0[src]

type Output = Wrapping<u128>

pub fn rem(self, other: Wrapping<u128>) -> Wrapping<u128>[src]

impl Rem<Wrapping<usize>> for Wrapping<usize>1.7.0[src]

type Output = Wrapping<usize>

pub fn rem(self, other: Wrapping<usize>) -> Wrapping<usize>[src]

impl<'_> Rem<&'_ Wrapping<i8>> for Wrapping<i8>1.14.0[src]

type Output = <Wrapping<i8> as Rem<Wrapping<i8>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i8>
) -> <Wrapping<i8> as Rem<Wrapping<i8>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<i16>> for Wrapping<i16>1.14.0[src]

type Output = <Wrapping<i16> as Rem<Wrapping<i16>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i16>
) -> <Wrapping<i16> as Rem<Wrapping<i16>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<i32>> for Wrapping<i32>1.14.0[src]

type Output = <Wrapping<i32> as Rem<Wrapping<i32>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i32>
) -> <Wrapping<i32> as Rem<Wrapping<i32>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<i64>> for Wrapping<i64>1.14.0[src]

type Output = <Wrapping<i64> as Rem<Wrapping<i64>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i64>
) -> <Wrapping<i64> as Rem<Wrapping<i64>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<i128>> for Wrapping<i128>1.14.0[src]

type Output = <Wrapping<i128> as Rem<Wrapping<i128>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i128>
) -> <Wrapping<i128> as Rem<Wrapping<i128>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<isize>> for Wrapping<isize>1.14.0[src]

type Output = <Wrapping<isize> as Rem<Wrapping<isize>>>::Output

pub fn rem(
    self,
    other: &Wrapping<isize>
) -> <Wrapping<isize> as Rem<Wrapping<isize>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<u8>> for Wrapping<u8>1.14.0[src]

type Output = <Wrapping<u8> as Rem<Wrapping<u8>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u8>
) -> <Wrapping<u8> as Rem<Wrapping<u8>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<u16>> for Wrapping<u16>1.14.0[src]

type Output = <Wrapping<u16> as Rem<Wrapping<u16>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u16>
) -> <Wrapping<u16> as Rem<Wrapping<u16>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<u32>> for Wrapping<u32>1.14.0[src]

type Output = <Wrapping<u32> as Rem<Wrapping<u32>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u32>
) -> <Wrapping<u32> as Rem<Wrapping<u32>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<u64>> for Wrapping<u64>1.14.0[src]

type Output = <Wrapping<u64> as Rem<Wrapping<u64>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u64>
) -> <Wrapping<u64> as Rem<Wrapping<u64>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<u128>> for Wrapping<u128>1.14.0[src]

type Output = <Wrapping<u128> as Rem<Wrapping<u128>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u128>
) -> <Wrapping<u128> as Rem<Wrapping<u128>>>::Output
[src]

impl<'_> Rem<&'_ Wrapping<usize>> for Wrapping<usize>1.14.0[src]

type Output = <Wrapping<usize> as Rem<Wrapping<usize>>>::Output

pub fn rem(
    self,
    other: &Wrapping<usize>
) -> <Wrapping<usize> as Rem<Wrapping<usize>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<i8>> for &'_ Wrapping<i8>1.14.0[src]

type Output = <Wrapping<i8> as Rem<Wrapping<i8>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i8>
) -> <Wrapping<i8> as Rem<Wrapping<i8>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<i16>> for &'_ Wrapping<i16>1.14.0[src]

type Output = <Wrapping<i16> as Rem<Wrapping<i16>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i16>
) -> <Wrapping<i16> as Rem<Wrapping<i16>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<i32>> for &'_ Wrapping<i32>1.14.0[src]

type Output = <Wrapping<i32> as Rem<Wrapping<i32>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i32>
) -> <Wrapping<i32> as Rem<Wrapping<i32>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<i64>> for &'_ Wrapping<i64>1.14.0[src]

type Output = <Wrapping<i64> as Rem<Wrapping<i64>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i64>
) -> <Wrapping<i64> as Rem<Wrapping<i64>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<i128>> for &'_ Wrapping<i128>1.14.0[src]

type Output = <Wrapping<i128> as Rem<Wrapping<i128>>>::Output

pub fn rem(
    self,
    other: &Wrapping<i128>
) -> <Wrapping<i128> as Rem<Wrapping<i128>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<isize>> for &'_ Wrapping<isize>1.14.0[src]

type Output = <Wrapping<isize> as Rem<Wrapping<isize>>>::Output

pub fn rem(
    self,
    other: &Wrapping<isize>
) -> <Wrapping<isize> as Rem<Wrapping<isize>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<u8>> for &'_ Wrapping<u8>1.14.0[src]

type Output = <Wrapping<u8> as Rem<Wrapping<u8>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u8>
) -> <Wrapping<u8> as Rem<Wrapping<u8>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<u16>> for &'_ Wrapping<u16>1.14.0[src]

type Output = <Wrapping<u16> as Rem<Wrapping<u16>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u16>
) -> <Wrapping<u16> as Rem<Wrapping<u16>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<u32>> for &'_ Wrapping<u32>1.14.0[src]

type Output = <Wrapping<u32> as Rem<Wrapping<u32>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u32>
) -> <Wrapping<u32> as Rem<Wrapping<u32>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<u64>> for &'_ Wrapping<u64>1.14.0[src]

type Output = <Wrapping<u64> as Rem<Wrapping<u64>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u64>
) -> <Wrapping<u64> as Rem<Wrapping<u64>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<u128>> for &'_ Wrapping<u128>1.14.0[src]

type Output = <Wrapping<u128> as Rem<Wrapping<u128>>>::Output

pub fn rem(
    self,
    other: &Wrapping<u128>
) -> <Wrapping<u128> as Rem<Wrapping<u128>>>::Output
[src]

impl<'_, '_> Rem<&'_ Wrapping<usize>> for &'_ Wrapping<usize>1.14.0[src]

type Output = <Wrapping<usize> as Rem<Wrapping<usize>>>::Output

pub fn rem(
    self,
    other: &Wrapping<usize>
) -> <Wrapping<usize> as Rem<Wrapping<usize>>>::Output
[src]

impl<'_, '_, T> Rem<&'_ T> for &'_ NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(self, other: &T) -> <&'_ NotNan<T> as Rem<&'_ T>>::Output

impl<'_, T> Rem<&'_ NotNan<T>> for &'_ NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(
    self,
    other: &'_ NotNan<T>
) -> <&'_ NotNan<T> as Rem<&'_ NotNan<T>>>::Output

impl<'_, T> Rem<&'_ NotNan<T>> for NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(self, other: &NotNan<T>) -> <NotNan<T> as Rem<&'_ NotNan<T>>>::Output

impl<'_, T> Rem<&'_ T> for NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(self, other: &T) -> <NotNan<T> as Rem<&'_ T>>::Output

impl<'_, T> Rem<NotNan<T>> for &'_ NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(self, other: NotNan<T>) -> <&'_ NotNan<T> as Rem<NotNan<T>>>::Output

impl<'_, T> Rem<T> for &'_ NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(self, other: T) -> <&'_ NotNan<T> as Rem<T>>::Output

impl<'a> Rem<Wrapping<i8>> for &'a Wrapping<i8>1.14.0[src]

type Output = <Wrapping<i8> as Rem<Wrapping<i8>>>::Output

pub fn rem(
    self,
    other: Wrapping<i8>
) -> <Wrapping<i8> as Rem<Wrapping<i8>>>::Output
[src]

impl<'a> Rem<Wrapping<i16>> for &'a Wrapping<i16>1.14.0[src]

type Output = <Wrapping<i16> as Rem<Wrapping<i16>>>::Output

pub fn rem(
    self,
    other: Wrapping<i16>
) -> <Wrapping<i16> as Rem<Wrapping<i16>>>::Output
[src]

impl<'a> Rem<Wrapping<i32>> for &'a Wrapping<i32>1.14.0[src]

type Output = <Wrapping<i32> as Rem<Wrapping<i32>>>::Output

pub fn rem(
    self,
    other: Wrapping<i32>
) -> <Wrapping<i32> as Rem<Wrapping<i32>>>::Output
[src]

impl<'a> Rem<Wrapping<i64>> for &'a Wrapping<i64>1.14.0[src]

type Output = <Wrapping<i64> as Rem<Wrapping<i64>>>::Output

pub fn rem(
    self,
    other: Wrapping<i64>
) -> <Wrapping<i64> as Rem<Wrapping<i64>>>::Output
[src]

impl<'a> Rem<Wrapping<i128>> for &'a Wrapping<i128>1.14.0[src]

type Output = <Wrapping<i128> as Rem<Wrapping<i128>>>::Output

pub fn rem(
    self,
    other: Wrapping<i128>
) -> <Wrapping<i128> as Rem<Wrapping<i128>>>::Output
[src]

impl<'a> Rem<Wrapping<isize>> for &'a Wrapping<isize>1.14.0[src]

type Output = <Wrapping<isize> as Rem<Wrapping<isize>>>::Output

pub fn rem(
    self,
    other: Wrapping<isize>
) -> <Wrapping<isize> as Rem<Wrapping<isize>>>::Output
[src]

impl<'a> Rem<Wrapping<u8>> for &'a Wrapping<u8>1.14.0[src]

type Output = <Wrapping<u8> as Rem<Wrapping<u8>>>::Output

pub fn rem(
    self,
    other: Wrapping<u8>
) -> <Wrapping<u8> as Rem<Wrapping<u8>>>::Output
[src]

impl<'a> Rem<Wrapping<u16>> for &'a Wrapping<u16>1.14.0[src]

type Output = <Wrapping<u16> as Rem<Wrapping<u16>>>::Output

pub fn rem(
    self,
    other: Wrapping<u16>
) -> <Wrapping<u16> as Rem<Wrapping<u16>>>::Output
[src]

impl<'a> Rem<Wrapping<u32>> for &'a Wrapping<u32>1.14.0[src]

type Output = <Wrapping<u32> as Rem<Wrapping<u32>>>::Output

pub fn rem(
    self,
    other: Wrapping<u32>
) -> <Wrapping<u32> as Rem<Wrapping<u32>>>::Output
[src]

impl<'a> Rem<Wrapping<u64>> for &'a Wrapping<u64>1.14.0[src]

type Output = <Wrapping<u64> as Rem<Wrapping<u64>>>::Output

pub fn rem(
    self,
    other: Wrapping<u64>
) -> <Wrapping<u64> as Rem<Wrapping<u64>>>::Output
[src]

impl<'a> Rem<Wrapping<u128>> for &'a Wrapping<u128>1.14.0[src]

type Output = <Wrapping<u128> as Rem<Wrapping<u128>>>::Output

pub fn rem(
    self,
    other: Wrapping<u128>
) -> <Wrapping<u128> as Rem<Wrapping<u128>>>::Output
[src]

impl<'a> Rem<Wrapping<usize>> for &'a Wrapping<usize>1.14.0[src]

type Output = <Wrapping<usize> as Rem<Wrapping<usize>>>::Output

pub fn rem(
    self,
    other: Wrapping<usize>
) -> <Wrapping<usize> as Rem<Wrapping<usize>>>::Output
[src]

impl<'a, T> Rem<&'a &'a OrderedFloat<T>> for &'a OrderedFloat<T> where
    &'a T: Rem<&'a T>, 

type Output = OrderedFloat<<&'a T as Rem<&'a T>>::Output>

pub fn rem(
    self,
    other: &'a &'a OrderedFloat<T>
) -> <&'a OrderedFloat<T> as Rem<&'a &'a OrderedFloat<T>>>::Output

impl<'a, T> Rem<&'a OrderedFloat<T>> for &'a OrderedFloat<T> where
    &'a T: Rem<&'a T>, 

type Output = OrderedFloat<<&'a T as Rem<&'a T>>::Output>

pub fn rem(
    self,
    other: &'a OrderedFloat<T>
) -> <&'a OrderedFloat<T> as Rem<&'a OrderedFloat<T>>>::Output

impl<'a, T> Rem<&'a OrderedFloat<T>> for OrderedFloat<T> where
    T: Rem<&'a T>, 

type Output = OrderedFloat<<T as Rem<&'a T>>::Output>

pub fn rem(
    self,
    other: &'a OrderedFloat<T>
) -> <OrderedFloat<T> as Rem<&'a OrderedFloat<T>>>::Output

impl<'a, T> Rem<&'a T> for &'a OrderedFloat<T> where
    &'a T: Rem<&'a T>, 

type Output = OrderedFloat<<&'a T as Rem<&'a T>>::Output>

pub fn rem(self, other: &'a T) -> <&'a OrderedFloat<T> as Rem<&'a T>>::Output

impl<'a, T> Rem<&'a T> for OrderedFloat<T> where
    T: Rem<&'a T>, 

type Output = OrderedFloat<<T as Rem<&'a T>>::Output>

pub fn rem(self, other: &'a T) -> <OrderedFloat<T> as Rem<&'a T>>::Output

impl<'a, T> Rem<OrderedFloat<T>> for &'a OrderedFloat<T> where
    &'a T: Rem<T>, 

type Output = OrderedFloat<<&'a T as Rem<T>>::Output>

pub fn rem(
    self,
    other: OrderedFloat<T>
) -> <&'a OrderedFloat<T> as Rem<OrderedFloat<T>>>::Output

impl<'a, T> Rem<T> for &'a OrderedFloat<T> where
    &'a T: Rem<T>, 

type Output = OrderedFloat<<&'a T as Rem<T>>::Output>

pub fn rem(self, other: T) -> <&'a OrderedFloat<T> as Rem<T>>::Output

impl<I> Rem<I> for Z0 where
    I: Integer + NonZero

Z0 % I = Z0 where I != 0

type Output = Z0

pub fn rem(self, I) -> <Z0 as Rem<I>>::Output

impl<Rhs> Rem<Rhs> for ATerm

type Output = ATerm

pub fn rem(self, Rhs) -> <ATerm as Rem<Rhs>>::Output

impl<T> Rem<OrderedFloat<T>> for OrderedFloat<T> where
    T: Rem<T>, 

type Output = OrderedFloat<<T as Rem<T>>::Output>

pub fn rem(
    self,
    other: OrderedFloat<T>
) -> <OrderedFloat<T> as Rem<OrderedFloat<T>>>::Output

impl<T> Rem<NotNan<T>> for NotNan<T> where
    T: Float

type Output = NotNan<T>

pub fn rem(self, other: NotNan<T>) -> NotNan<T>

impl<T> Rem<T> for OrderedFloat<T> where
    T: Rem<T>, 

type Output = OrderedFloat<<T as Rem<T>>::Output>

pub fn rem(self, other: T) -> <OrderedFloat<T> as Rem<T>>::Output

impl<T> Rem<T> for NotNan<T> where
    T: Float

Calculates % with a float directly.

Panics if the provided value is NaN or the computation results in NaN

type Output = NotNan<T>

pub fn rem(self, other: T) -> NotNan<T>

impl<Ul, Bl, Ur, Br> Rem<UInt<Ur, Br>> for UInt<Ul, Bl> where
    Ul: Unsigned,
    Ur: Unsigned,
    Br: Bit,
    Bl: Bit,
    UInt<Ul, Bl>: Len,
    <UInt<Ul, Bl> as Len>::Output: Sub<B1>,
    (): PrivateDiv<UInt<Ul, Bl>, UInt<Ur, Br>, UTerm, UTerm, <<UInt<Ul, Bl> as Len>::Output as Sub<B1>>::Output>, 

type Output = <() as PrivateDiv<UInt<Ul, Bl>, UInt<Ur, Br>, UTerm, UTerm, <<UInt<Ul, Bl> as Len>::Output as Sub<B1>>::Output>>::Remainder

pub fn rem(
    self,
    rhs: UInt<Ur, Br>
) -> <UInt<Ul, Bl> as Rem<UInt<Ur, Br>>>::Output

impl<Ul, Ur> Rem<NInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero + Rem<Ur>,
    Ur: Unsigned + NonZero,
    NInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>, 

$A<Ul> % $B<Ur> = $R<Ul % Ur>

type Output = <NInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>>::Output

pub fn rem(self, rhs: NInt<Ur>) -> <NInt<Ul> as Rem<NInt<Ur>>>::Output

impl<Ul, Ur> Rem<NInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Rem<Ur>,
    Ur: Unsigned + NonZero,
    PInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>, 

$A<Ul> % $B<Ur> = $R<Ul % Ur>

type Output = <PInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, NInt<Ur>>>::Output

pub fn rem(self, rhs: NInt<Ur>) -> <PInt<Ul> as Rem<NInt<Ur>>>::Output

impl<Ul, Ur> Rem<PInt<Ur>> for NInt<Ul> where
    Ul: Unsigned + NonZero + Rem<Ur>,
    Ur: Unsigned + NonZero,
    NInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>, 

$A<Ul> % $B<Ur> = $R<Ul % Ur>

type Output = <NInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>>::Output

pub fn rem(self, rhs: PInt<Ur>) -> <NInt<Ul> as Rem<PInt<Ur>>>::Output

impl<Ul, Ur> Rem<PInt<Ur>> for PInt<Ul> where
    Ul: Unsigned + NonZero + Rem<Ur>,
    Ur: Unsigned + NonZero,
    PInt<Ul>: PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>, 

$A<Ul> % $B<Ur> = $R<Ul % Ur>

type Output = <PInt<Ul> as PrivateRem<<Ul as Rem<Ur>>::Output, PInt<Ur>>>::Output

pub fn rem(self, rhs: PInt<Ur>) -> <PInt<Ul> as Rem<PInt<Ur>>>::Output

impl<Ur, Br> Rem<UInt<Ur, Br>> for UTerm where
    Ur: Unsigned,
    Br: Bit

type Output = UTerm

pub fn rem(self, UInt<Ur, Br>) -> <UTerm as Rem<UInt<Ur, Br>>>::Output

impl<V, A, Rhs> Rem<Rhs> for TArr<V, A> where
    Rhs: Copy,
    A: Rem<Rhs>,
    V: Rem<Rhs>, 

type Output = TArr<<V as Rem<Rhs>>::Output, <A as Rem<Rhs>>::Output>

pub fn rem(self, rhs: Rhs) -> <TArr<V, A> as Rem<Rhs>>::Output