1 unstable release
0.1.0 | May 19, 2019 |
---|
#4 in #subsets
Used in powerset-enum
15KB
341 lines
Rust Powerset Enum
A poor man's anonymous enum
, useful mostly for error handling. Turn your
Error
enum
into a Powerset Enum to allow taking subsets of the original enums.
See the examples, specifically with_powerset_enums.rs vs without_powerset_enums.rs, to understand how this works.
Note: this is a nightly only crate, and to use it you need to enable the following feature flags:
#![feature(never_type, exhaustive_patterns, proc_macro_hygiene)]
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~2MB
~48K SLoC