Support for deriving traits found in uncon.
Usage
This crate is available on crates.io and can be used by adding the
following to your project's Cargo.toml:
[]
= "1.0.0"
= "1.0.0"
and this to your crate root:
extern crate uncon_derive;
extern crate uncon;
#
Examples
The FromUnchecked trait can be derived for:
- Structs with a single field
- C-like enums with
#[repr]attribute
# extern crate core;
#
# extern crate uncon_derive;
# extern crate uncon;
# use *;
#