#default-value #enums #deprecated #macro-derive #attributes #github #io

deprecated macro enum_default

DEPRECATED PLEASE SEE: https://rust-lang.github.io/rfcs/3107-derive-default-enum.html ---------------------------------------------------------------------------------------- enum_default provides an EnumDefault derive macro that provides a std::Default implementation for Enums by using the first value or specifying a #[default] attribute

1 unstable release

0.2.6 Feb 20, 2023
0.2.5 Jul 20, 2020
0.1.2 Jul 20, 2020

#55 in #default-value

Download history 107/week @ 2024-02-23 113/week @ 2024-03-01 71/week @ 2024-03-08 109/week @ 2024-03-15 116/week @ 2024-03-22 39/week @ 2024-03-29 37/week @ 2024-04-05 79/week @ 2024-04-19 71/week @ 2024-04-26 105/week @ 2024-05-03 255/week @ 2024-05-10 2/week @ 2024-05-17

510 downloads per month
Used in bevy-atlas-loader

MIT license

5KB

enum_default

** THIS CRATE IS DEPRECATED PLEASE USE: https://rust-lang.github.io/rfcs/3107-derive-default-enum.html **

Simple crate that provides a std::Default implementation for enums by using the first item.

or you can override the default paramaters with the #[default] attribute.

check the example

Dependencies

~1.5MB
~34K SLoC