Crate unite[][src]

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

Helper macro to compose existing types into an enum.