enumcapsulate 0.6.3

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

#[derive(From)]
pub struct Struct {
    field: (),
}

fn main() {}