Trait sc_network::multiaddr::multihash::typenum::PartialDiv [−][src]
pub trait PartialDiv<Rhs = Self> {
type Output;
pub fn partial_div(self, Rhs) -> Self::Output;
}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
Loading content...Required methods
pub fn partial_div(self, Rhs) -> Self::Output[src]
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>, [src]type Output = <M as Div<N>>::Output
pub fn partial_div(self, rhs: N) -> <M as PartialDiv<N>>::Output[src]
impl<Rhs> PartialDiv<Rhs> for ATerm[src]
impl<Rhs> PartialDiv<Rhs> for ATerm[src]type Output = ATerm
pub fn partial_div(self, Rhs) -> <ATerm as PartialDiv<Rhs>>::Output[src]
impl<Ul, Bl, Ur, Br> PartialDiv<UInt<Ur, Br>> for UInt<Ul, Bl> where
Br: Bit,
Ul: Unsigned,
Ur: Unsigned,
Bl: Bit,
UInt<Ul, Bl>: Div<UInt<Ur, Br>>,
UInt<Ul, Bl>: Rem<UInt<Ur, Br>>,
<UInt<Ul, Bl> as Rem<UInt<Ur, Br>>>::Output == UTerm, [src]
impl<Ul, Bl, Ur, Br> PartialDiv<UInt<Ur, Br>> for UInt<Ul, Bl> where
Br: Bit,
Ul: Unsigned,
Ur: Unsigned,
Bl: Bit,
UInt<Ul, Bl>: Div<UInt<Ur, Br>>,
UInt<Ul, Bl>: Rem<UInt<Ur, Br>>,
<UInt<Ul, Bl> as Rem<UInt<Ur, Br>>>::Output == UTerm, [src]impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Br: Bit,
Ur: Unsigned, [src]
impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Br: Bit,
Ur: Unsigned, [src]type Output = UTerm
pub fn partial_div(
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output[src]
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
Rhs: Copy, [src]
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
Rhs: Copy, [src]