pub trait CheckedDiv<Rhs = Self>: Sized {
    // Required method
    fn checked_div(&self, rhs: &Rhs) -> CtOption<Self>;
}
Expand description

Checked division.

Required Methods§

source

fn checked_div(&self, rhs: &Rhs) -> CtOption<Self>

Perform checked division, returning a CtOption which is_some only if the divisor is non-zero.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl CheckedDiv for BoxedUint

Available on crate feature alloc only.
source§

impl<const LIMBS: usize> CheckedDiv for Uint<LIMBS>