5 releases
Uses old Rust 2015
| 0.2.1 | Apr 16, 2018 |
|---|---|
| 0.2.0 | Apr 16, 2018 |
| 0.1.2 | Apr 11, 2018 |
| 0.1.1 | May 31, 2017 |
| 0.1.0 | May 31, 2017 |
#1675 in Rust patterns
50 downloads per month
Used in enum-tryfrom-derive
4KB
Enum TryFrom
A crate to derive the TryFrom trait on enums using procedural macros.
Expect frequent breakage for now.
Documentation
This adds the ability to #[derive(TryFromPrimitive)], which in combination
with one (well zero, but that's not useful) or more
#[FromPrimitiveType="type"] attributes lets you automatically derive
TryFrom<type> for enum types.
Detailed documentation can be generated with cargo doc.
lib.rs:
This crate defines types and traits for use with enum-tryfrom-derive See
the documentation of that crate for usage details.