Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uazu/unsized_enum
Rust unsized enum implementation
https://github.com/uazu/unsized_enum
Last synced: about 1 month ago
JSON representation
Rust unsized enum implementation
- Host: GitHub
- URL: https://github.com/uazu/unsized_enum
- Owner: uazu
- License: apache-2.0
- Created: 2020-08-06T23:14:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T21:43:13.000Z (over 4 years ago)
- Last Synced: 2024-09-15T22:48:45.609Z (2 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Unsized enums
Rust does not support unsized (`?Sized`) variants in an enum. This
crate provides an unsized enum with one unsized variant and one sized
variant, returned boxed along with a common base structure. The enum
may be read and modified, including switching variants, even through a
trait object reference.### Documentation
See the [crate documentation](http://docs.rs/unsized_enum).
# License
This project is licensed under either the Apache License version 2 or
the MIT license, at your option. (See
[LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT)).### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in this crate by you, as defined in the
Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.