https://github.com/script-mouse/enum_unwrapper
https://github.com/script-mouse/enum_unwrapper
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/script-mouse/enum_unwrapper
- Owner: script-mouse
- License: apache-2.0
- Created: 2023-07-26T20:56:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T19:02:31.000Z (almost 2 years ago)
- Last Synced: 2026-01-02T12:06:37.375Z (6 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).