#pointers #topology #geometry #high #bits #macro #enums

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

#887 in Rust patterns

Download history 154/week @ 2024-02-16 53/week @ 2024-02-23 18/week @ 2024-03-01 2/week @ 2024-03-08 2/week @ 2024-03-15 104/week @ 2024-03-29 22/week @ 2024-04-05

126 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