Trait aoc::util::math::IntegerMathOps

source ·
pub trait IntegerMathOps<T: Integer<T>> {
    // Required methods
    fn gcd(self, b: T) -> T;
    fn lcm(self, b: T) -> T;
    fn mod_pow(self, e: T, m: T) -> T;
}

Required Methods§

source

fn gcd(self, b: T) -> T

source

fn lcm(self, b: T) -> T

source

fn mod_pow(self, e: T, m: T) -> T

Implementors§

source§

impl<T: Integer<T>> IntegerMathOps<T> for T