[−][src]Trait typenum::type_operators::PartialDiv
Division as a partial function. This type operator performs division just as Div
, but is
only defined when the result is an integer (i.e. there is no remainder).
Associated Types
type Output
The type of the result of the division
Required Methods
fn partial_div(self, _: Rhs) -> Self::Output
Method for performing the division
Implementors
impl<M, N> PartialDiv<N> for M where
M: Integer + Div<N> + Rem<N, Output = Z0>,
[src]
impl<M, N> PartialDiv<N> for M where
M: Integer + Div<N> + Rem<N, Output = Z0>,
type Output = Quot<M, N>
fn partial_div(self, _: N) -> Self::Output
[src]
fn partial_div(self, _: N) -> Self::Output
impl<Rhs> PartialDiv<Rhs> for ATerm
[src]
impl<Rhs> PartialDiv<Rhs> for ATerm
type Output = ATerm
fn partial_div(self, _: Rhs) -> Self::Output
[src]
fn partial_div(self, _: Rhs) -> Self::Output
impl<Ul: Unsigned, Bl: Bit, Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UInt<Ul, Bl> where
UInt<Ul, Bl>: Div<UInt<Ur, Br>> + Rem<UInt<Ur, Br>, Output = U0>,
[src]
impl<Ul: Unsigned, Bl: Bit, Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UInt<Ul, Bl> where
UInt<Ul, Bl>: Div<UInt<Ur, Br>> + Rem<UInt<Ur, Br>, Output = U0>,
type Output = Quot<UInt<Ul, Bl>, UInt<Ur, Br>>
fn partial_div(self, _: UInt<Ur, Br>) -> Self::Output
[src]
fn partial_div(self, _: UInt<Ur, Br>) -> Self::Output
impl<Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UTerm
[src]
impl<Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UTerm
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
V: PartialDiv<Rhs>,
A: PartialDiv<Rhs>,
[src]
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
V: PartialDiv<Rhs>,
A: PartialDiv<Rhs>,
type Output = TArr<PartialQuot<V, Rhs>, PartialQuot<A, Rhs>>
fn partial_div(self, _: Rhs) -> Self::Output
[src]
fn partial_div(self, _: Rhs) -> Self::Output