Trait otter_api_tests::imports::digest::generic_array::typenum::PartialDiv [−]
pub trait PartialDiv<Rhs = Self> { type Output; fn partial_div(self, Rhs) -> Self::Output; }
Expand description
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
type Output
The type of the result of the division
Required methods
fn partial_div(self, Rhs) -> Self::Output
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>,
impl<M, N> PartialDiv<N> for M where
M: Integer + Div<N> + Rem<N, Output = Z0>,
pub fn partial_div(self, rhs: N) -> <M as PartialDiv<N>>::Output
impl<Rhs> PartialDiv<Rhs> for ATerm
impl<Rhs> PartialDiv<Rhs> for ATerm
pub fn partial_div(self, Rhs) -> <ATerm as PartialDiv<Rhs>>::Output
impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Ur: Unsigned,
Br: Bit,
impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Ur: Unsigned,
Br: Bit,
pub fn partial_div(
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
Rhs: Copy,
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
Rhs: Copy,
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
type Output = TArr<<V as PartialDiv<Rhs>>::Output, <A as PartialDiv<Rhs>>::Output>
pub fn partial_div(self, rhs: Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::Output