Trait sc_network::multiaddr::multihash::typenum::Gcd[]

pub trait Gcd<Rhs> {
    type Output;
}
Expand description

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

Example

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

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

Associated Types

The greatest common divisor.

Implementors