Trait dashu::rational::ops::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

§

type Output = i8

source§

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

source§

impl DivEuclid for i16

§

type Output = i16

source§

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

source§

impl DivEuclid for i32

§

type Output = i32

source§

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

source§

impl DivEuclid for i64

§

type Output = i64

source§

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

source§

impl DivEuclid for i128

§

type Output = i128

source§

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

source§

impl DivEuclid for isize

§

type Output = isize

source§

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

source§

impl DivEuclid for u8

§

type Output = u8

source§

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

source§

impl DivEuclid for u16

§

type Output = u16

source§

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

source§

impl DivEuclid for u32

§

type Output = u32

source§

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

source§

impl DivEuclid for u64

§

type Output = u64

source§

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

source§

impl DivEuclid for u128

§

type Output = u128

source§

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

source§

impl DivEuclid for usize

§

type Output = usize

source§

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

Implementors§

source§

impl DivEuclid for IBig

§

type Output = IBig

source§

impl DivEuclid for UBig

§

type Output = UBig

source§

impl DivEuclid for RBig

§

type Output = IBig

source§

impl DivEuclid for Relaxed

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = UBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = UBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = UBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig

source§

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

§

type Output = IBig