Available on
zerocopy_unstable_ptr only.Macros§
Enums§
Traits§
- Mutation
Compatible - Denotes that
src: Ptr<Src, (A, _, SV)>anddst: Ptr<Self, (A, _, DV)>, referencing the same referent at the same time, cannot be used by safe code to break library safety invariants ofSrcorSelf. - Shared
Compatible - Denotes that shared references to two types may safely coexist on the same referent.
- SizeEq
- Carries the ability to perform a size-preserving cast or conversion from a
raw pointer to
Srcto a raw pointer toSelf. - Transmute
From - Denotes that, for equally-sized referents, every bit pattern allowed for an
SV-validSrcis also allowed for aDV-validSelf. - Transmute
From Ptr - Exact pointer reinterpretations which are always sound.
- TryTransmute
From Ptr - Exact pointer reinterpretations which are sound to attempt, conditional on establishing the destination validity invariant.