1 unstable release
0.2.6 | Feb 20, 2023 |
---|---|
0.2.5 |
|
0.1.2 |
|
#65 in #default-value
199 downloads per month
Used in bevy-atlas-loader
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
~37K SLoC