[][src]Trait sss_rs::utils::NaturalMod

pub trait NaturalMod<T: Rem + Sized + Copy = Self>: Rem + Sized + Copy {
    type Output_: Sized + Copy;
    fn natural_mod(self, rhs: T) -> Self::Output_;
}

Trait for calculating modulo with negative numbers. Rem/Modulo operations move out the negative number, but that is not always the needed output.

Associated Types

Loading content...

Required methods

fn natural_mod(self, rhs: T) -> Self::Output_

Computes the natural modulo of two given numbers.

Loading content...

Implementations on Foreign Types

impl NaturalMod<i64> for i64[src]

type Output_ = i64

Loading content...

Implementors

impl NaturalMod<i64> for Fraction[src]

type Output_ = Fraction

Loading content...