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
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 10.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 301.73 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • goodvibs/compact-option
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • goodvibs

compact-option-proc-macro

Procedural-macro companion to 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 for usage and safety notes.

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