Expand description
This module provides a way to combine state with pointer into single value.
Size of the state is limited by the pointer alignment.
PtrState combines pointer and state.
It preserves pointer provenance and allows to use restored pointer safely
under strict-provenance rules.
Structsยง
- Atomic
PtrState - Stores pointer and state in lower bits of single pointer value. State size is limited by pointer alignment.
- PtrState
- Stores pointer and state in lower bits of single pointer value. State size is limited by pointer alignment.
- State
- State wrapper for
usizethat ensures that address bits for pointer toTare not set.