enum-tryfrom

Crates.ioenum-tryfrom
lib.rsenum-tryfrom
version0.2.1
sourcesrc
created_at2017-05-31 20:07:30.470309
updated_at2018-04-16 10:45:35.297105
descriptionError types and traits for use with enum-tryfrom-derive
homepage
repositoryhttps://github.com/kwohlfahrt/enum-tryfrom
max_upload_size
id17117
size7,260
Kai Wohlfahrt (kwohlfahrt)

documentation

README

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.

Commit count: 28

cargo fmt