ConstEq

Derive Macro ConstEq 

Source
#[derive(ConstEq)]
Expand description

Derives a ConstEq implementation for a struct or enum.

Example:

#![feature(const_trait_impl)]
use const_hashmap_macros::ConstEq;

#[derive(ConstEq)]
struct Point {
    x: i32,
    y: i32,
}

This generates a ConstEq implementation that can be used in constant contexts.