/enum_default

Primary LanguageRustMIT LicenseMIT

enum_default

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