Crates.io | viaptr |
lib.rs | viaptr |
version | 0.1.0 |
source | src |
created_at | 2024-04-19 22:10:24.240681 |
updated_at | 2024-04-19 22:10:24.240681 |
description | An experimental library for packing complex types into pointer-sized fields |
homepage | |
repository | https://github.com/jmspiewak/viaptr |
max_upload_size | |
id | 1214136 |
size | 43,693 |
An experimental library for packing complex types into pointer-sized fields.
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
Mozilla Public License 2.0