MulRounded

Trait MulRounded 

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

Multiplication giving a result rounded to fit a Result type.

Required Methods§

Source

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

Returns self * other, rounded as Result.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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