Trait DivEuclid

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

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

Compute Euclidean quotient.

§Examples

use dashu_base::DivEuclid;
assert_eq!((-23).div_euclid(10), -3);

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl DivEuclid for i8

Source§

type Output = i8

Source§

fn div_euclid(self, rhs: i8) -> i8

Source§

impl DivEuclid for i16

Source§

type Output = i16

Source§

fn div_euclid(self, rhs: i16) -> i16

Source§

impl DivEuclid for i32

Source§

type Output = i32

Source§

fn div_euclid(self, rhs: i32) -> i32

Source§

impl DivEuclid for i64

Source§

type Output = i64

Source§

fn div_euclid(self, rhs: i64) -> i64

Source§

impl DivEuclid for i128

Source§

impl DivEuclid for isize

Source§

impl DivEuclid for u8

Source§

type Output = u8

Source§

fn div_euclid(self, rhs: u8) -> u8

Source§

impl DivEuclid for u16

Source§

type Output = u16

Source§

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

Source§

impl DivEuclid for u32

Source§

type Output = u32

Source§

fn div_euclid(self, rhs: u32) -> u32

Source§

impl DivEuclid for u64

Source§

type Output = u64

Source§

fn div_euclid(self, rhs: u64) -> u64

Source§

impl DivEuclid for u128

Source§

impl DivEuclid for usize

Source§

impl DivEuclid for IBig

Source§

impl DivEuclid for UBig

Source§

impl<'l> DivEuclid<IBig> for &'l IBig

Source§

impl<'l> DivEuclid<UBig> for &'l UBig

Source§

impl<'l, 'r> DivEuclid<&'r IBig> for &'l IBig

Source§

impl<'l, 'r> DivEuclid<&'r UBig> for &'l UBig

Source§

impl<'r> DivEuclid<&'r IBig> for IBig

Source§

impl<'r> DivEuclid<&'r UBig> for UBig

Implementors§

Source§

impl<'l, 'r, R: Round, const B: Word> DivEuclid<&'r FBig<R, B>> for &'l FBig<R, B>

Source§

impl<'l, R: Round, const B: Word> DivEuclid<FBig<R, B>> for &'l FBig<R, B>

Source§

impl<'r, R: Round, const B: Word> DivEuclid<&'r FBig<R, B>> for FBig<R, B>

Source§

impl<R: Round, const B: Word> DivEuclid for FBig<R, B>