Trait Gcd

pub trait Gcd<Rhs>

A type operator that computes the greatest common divisor of Self and Rhs.

Example

use typenum::{Gcd, Unsigned, U12, U8};

assert_eq!(<U12 as Gcd<U8>>::Output::to_i32(), 4);

Associated Types

type Output;

The greatest common divisor.

Implementors