Trait HexAssertEqual

Source
pub trait HexAssertEqual<H: Hex> { }
Expand description

This is an internal implementation of asserted equality on hexadecimal.

Example

use const_arithmetic::*;
let a = _0;
let b = _0;
 
fn hex_equal<H1, H2>(_h1: H1, _h2: H2) where
H1: Hex,
H2: Hex,
H1: HexAssertEqual<H2> {}
 
hex_equal(a, b);
 
let c = _1;
// This does not compile
// hex_equal(a, c);

Implementors§