Crate unite

Crate unite 

Source
Expand description

This crate provides the unite! macro to easily compose existing types into an enum.

[dependencies]
unite = "0.1"

§Usage

use unite::unite;

struct A;
struct B;

unite! {
    enum Any { A, B, C = i32 }
}

Macros§

unite
Helper macro to compose existing types into an enum.