viaptr 0.1.0

An experimental library for packing complex types into pointer-sized fields
Documentation
  • Coverage
  • 29.41%
    15 out of 51 items documented0 out of 41 items with examples
  • Size
  • Source code size: 56.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • jmspiewak/viaptr
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jmspiewak

viaptr

An experimental library for packing complex types into pointer-sized fields.

Examples

Compact<Result<Box<A>, Box<B>>> // A pointer to A or B, taking up only one machine word
Compact<(Box<A>, Bits<2>)> // A tagged pointer with two additional bits of information

TODO

  • document safety constraints on unsafe traits and functions
  • general documentation

License

Mozilla Public License 2.0