compact-option-proc-macro 0.1.0

Attribute macro for compact-option's niche-packing optional; intended for `R` with spare bit patterns (primarily `repr(u8)` enums with <256 variants).
Documentation
1
2
3
4
5
6
7
8
# compact-option-proc-macro

Procedural-macro companion to [`compact-option`](https://crates.io/crates/compact-option): `#[compact_option(repr(R = …, sentinel = …))]`.
It targets the same core use case: a niche-packing optional that uses exactly as much memory as raw `R`, intended for `R` values with spare bit patterns (primarily `#[repr(u8)]` enums with fewer than 256 variants).

See the [repository](https://github.com/goodvibs/compact-option) for usage and safety notes.

Licensed under the MIT license (see the `LICENSE` file in the repository root).