Trait const_arithmetic::HexEqual 
source · pub trait HexEqual<H: Hex> {
    type Output: Binary;
}Expand description
This is an internal implementation of equality on hexadecimal. False evaluates to _0 and true evaluates to _1
Example
use const_arithmetic::*;
let a = _5;
let b = _5;
 
fn hex_equal<H1, H2, B>(_h1: H1, _h2: H2) where
H1: Hex,
H2: Hex,
B: Binary,
H1: HexEqual<H2, Output = B> ,
B: AssertTrue
{}
 
hex_equal(a, b);
 
let c = _1;
fn hex_neq<H1, H2, B>(_h1: H1, _h2: H2) where
H1: Hex,
H2: Hex,
B: Binary,
H1: HexEqual<H2, Output = B> ,
B: AssertFalse
{}
 
hex_neq(a, c);