Trait DivRounded

Source
pub trait DivRounded<Rhs, Result = Self> {
    // Required method
    fn div_rounded(self, rhs: Rhs) -> Result;
}
Expand description

Division giving a result rounded to fit a Result type.

Required Methods§

Source

fn div_rounded(self, rhs: Rhs) -> Result

Returns self / other, rounded as Result.

Implementations on Foreign Types§

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a i8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i8: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a i16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i16: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a i32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i32: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a i64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i64: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a i128
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i128: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a u8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u8: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a u16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u16: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a u32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u32: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<'a, const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for &'a u64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u64: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &i8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i8: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &i16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i16: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &i32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i32: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &i64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i64: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &i128
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i128: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &u8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u8: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &u16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u16: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &u32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u32: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for &u64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u64: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for i8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i8: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for i16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i16: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for i32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i32: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for i64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i64: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for i128
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, i128: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for u8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u8: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for u16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u16: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for u32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u32: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<&Decimal<P>, Decimal<R>> for u64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, u64: DivRounded<Decimal<P>, Decimal<R>>,

Source§

fn div_rounded(self, other: &Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for i8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for i16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for i32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for i64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for i128
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for u8
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for u16
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for u32
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Source§

impl<const P: u8, const R: u8> DivRounded<Decimal<P>, Decimal<R>> for u64
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

fn div_rounded(self, other: Decimal<P>) -> Decimal<R>

Implementors§

Source§

impl<'a, const P: u8, const Q: u8, const R: u8> DivRounded<Decimal<Q>, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<Decimal<Q>, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<i8, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i8, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<i16, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i16, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<i32, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i32, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<i64, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i64, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<i128, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i128, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<u8, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u8, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<u16, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u16, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<u32, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u32, Decimal<R>>,

Source§

impl<'a, const P: u8, const R: u8> DivRounded<u64, Decimal<R>> for &'a Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u64, Decimal<R>>,

Source§

impl<const P: u8, const Q: u8, const R: u8> DivRounded<&Decimal<Q>, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<Decimal<Q>, Decimal<R>>,

Source§

impl<const P: u8, const Q: u8, const R: u8> DivRounded<&Decimal<Q>, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<Decimal<Q>, Decimal<R>>,

Source§

impl<const P: u8, const Q: u8, const R: u8> DivRounded<Decimal<Q>, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<&i8, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i8, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i8, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i8, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i16, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i16, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i16, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i16, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i32, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i32, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i32, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i32, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i64, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i64, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i64, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i64, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i128, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i128, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&i128, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<i128, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u8, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u8, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u8, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u8, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u16, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u16, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u16, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u16, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u32, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u32, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u32, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u32, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u64, Decimal<R>> for &Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u64, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<&u64, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True, Decimal<P>: DivRounded<u64, Decimal<R>>,

Source§

impl<const P: u8, const R: u8> DivRounded<i8, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<i16, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<i32, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<i64, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<i128, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<u8, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<u16, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<u32, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,

Source§

impl<const P: u8, const R: u8> DivRounded<u64, Decimal<R>> for Decimal<P>
where PrecLimitCheck<{ _ }>: True, PrecLimitCheck<{ _ }>: True,