travismiller / enum_default

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Rust 100.0%