unsized_enum 0.0.2

Unsized enum implementation
Documentation
  • Coverage
  • 81.25%
    13 out of 16 items documented0 out of 13 items with examples
  • Size
  • Source code size: 35.91 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • uazu/unsized_enum
    6 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • uazu

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.

License

This project is licensed under either the Apache License version 2 or the MIT license, at your option. (See LICENSE-APACHE and 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.