Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 654 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 654 Bytes

Enum TryFrom

Build Status

A crate to derive the TryFrom trait on enums using procedural macros.

Expect frequent breakage for now.

Documentation

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.