Trait snarkvm_circuit::environment::traits::operators::RemChecked
pub trait RemChecked<Rhs = Self>where
Rhs: ?Sized,{
type Output;
// Required method
fn rem_checked(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Binary operator for dividing two values and returning the remainder, enforcing an overflow never occurs.
Required Associated Types§
type Output
Required Methods§
fn rem_checked(&self, rhs: &Rhs) -> Self::Output
Trait Implementations§
§impl<E, I> Metrics<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> Metrics<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>where E: Environment, I: IntegerType,
§impl<E, I> OutputMode<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> OutputMode<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>> for Integer<E, I>where E: Environment, I: IntegerType,
type Case = (Mode, Mode)
§fn output_mode(
case: &<Integer<E, I> as OutputMode<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>>>::Case
) -> Mode
fn output_mode( case: &<Integer<E, I> as OutputMode<dyn RemChecked<Integer<E, I>, Output = Integer<E, I>>>>::Case ) -> Mode
Returns the mode of the output.