enum_default

Crates.ioenum_default
lib.rsenum_default
version0.2.6
sourcesrc
created_at2020-07-19 23:46:25.874228
updated_at2023-02-20 04:56:16.229015
description 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
homepage
repositoryhttps://github.com/ozkar99/enum_default
max_upload_size
id267052
size8,246
Oscar Moreno Garza (ozkar99)

documentation

README

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

Commit count: 11

cargo fmt