enumcapsulate 0.6.3

Safe casting for newtype enums and their variants
Documentation
1
2
3
4
5
6
7
8
use enumcapsulate::IntoVariant;

#[derive(IntoVariant)]
pub union Union {
    field: (),
}

fn main() {}