viaptr

Crates.ioviaptr
lib.rsviaptr
version0.1.0
sourcesrc
created_at2024-04-19 22:10:24.240681
updated_at2024-04-19 22:10:24.240681
descriptionAn experimental library for packing complex types into pointer-sized fields
homepage
repositoryhttps://github.com/jmspiewak/viaptr
max_upload_size
id1214136
size43,693
jmspiewak (jmspiewak)

documentation

README

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

Commit count: 24

cargo fmt