#pointers #topology #geometry #high #bits #information #macro

ointer

Steal the high bits of a pointer to store an extra value

4 stable releases

3.0.12 Nov 17, 2023
3.0.10 Nov 1, 2023
3.0.9 Oct 30, 2023
2.1.1 Oct 28, 2023
0.1.0 Oct 27, 2023

#796 in Rust patterns

Download history 27/week @ 2024-07-01 160/week @ 2024-07-29 60/week @ 2024-09-23

60 downloads per month

MIT/Apache

28KB
566 lines

Ointer

This crate provides a set of traits and macros to enable the creation of custom pointers in Rust, allowing for the storage of extra information in the high bits of a pointer. This extra information can be of various types, and the crate provides utilities for working with these custom pointers efficiently. The crate also offers convenient macros for defining custom ointers and enum ointers and managing them.


lib.rs:

This crate provides a set of traits and macros to enable the creation of custom pointers in Rust, allowing for the storage of extra information in the high bits of a pointer. This extra information can be of various types, and the crate provides utilities for working with these custom pointers efficiently. The crate also offers convenient macros for defining custom ointers and enum ointers and managing them.

Dependencies