#enum #traits #try-from #tryfrom #enums #enum-tryfrom-derive #enum-tryfrom

no-std enum-tryfrom

Error types and traits for use with enum-tryfrom-derive

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

#2858 in Rust patterns

Download history 1/week @ 2023-11-15 4/week @ 2023-11-22 1/week @ 2023-11-29 1/week @ 2024-01-10 12/week @ 2024-01-17 2/week @ 2024-01-24 11/week @ 2024-02-14 34/week @ 2024-02-21 21/week @ 2024-02-28

66 downloads per month
Used in enum-tryfrom-derive

MIT license

4KB

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.


lib.rs:

This crate defines types and traits for use with enum-tryfrom-derive See the documentation of that crate for usage details.

No runtime deps