multi_eq
multi_eq
is a macro library for creating custom equality trait derives.
``rust
/// Custom comparison trait
CustomEqwith a method
customeq`
multieqmaketrait!(CustomEq, custom_eq);
struct MyStruct {
// Use PartialEq
to compare this field
#[custom_eq(cmp = "eq")]
a: u32,
// Ignore value of this field when checking equality #[custom_eq(ignore)] b: bool, } ```
For more information, see the documentation.