Expand description
This module implements tagged pointers. In order to utilize the pointer
packing, you must have a tag type implementing the Tag trait.
We assert that the tag and the reference type is compatible at compile time.
Structs§
- Tagged
Ref  - A covariant 
Copytagged borrow. This is essentially{ pointer: &'a P, tag: T }packed in a single reference. 
Traits§
Functions§
- bits_
for  - Returns the number of bits available for use for tags in a pointer to 
T(this is based onT’s alignment). - bits_
for_ tags  - Returns the correct 
Tag::BITSconstant for a set of tag values.