Crate condition_matcher_derive

Crate condition_matcher_derive 

Source
Expand description

§Condition Matcher Derive

This crate provides the #[derive(Matchable)] procedural macro for the condition-matcher crate.

§Usage

use condition_matcher::{Matchable, MatchableDerive};

#[derive(MatchableDerive, PartialEq)]
struct User {
    name: String,
    age: u32,
    email: Option<String>,
}

Derive Macros§

Matchable
Derive macro for implementing the Matchable trait.