An open API service indexing awesome lists of open source software.

https://github.com/script-mouse/enum_unwrapper


https://github.com/script-mouse/enum_unwrapper

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# enum_unwrapper
This is a library designed to ease the process of "unwrapping" enums to access the data within. After attaching the attribute `#[unique_try_froms]` to an enum definition, checked conversion through `try_from` is possible to any unique value type in the enum. For more information, check this library's [documentation](https://docs.rs/enum_unwrapper/0.1.0/enum_unwrapper/attr.unique_try_froms.html).