Skip to main content

Module transmute

Module transmute 

Source
Available on zerocopy_unstable_ptr only.

Macros§

unsafe_impl_shared_compatible 🔒

Enums§

BecauseMutationCompatible
BecauseRead
BecauseSharedCompatible

Traits§

MutationCompatible
Denotes that src: Ptr<Src, (A, _, SV)> and dst: Ptr<Self, (A, _, DV)>, referencing the same referent at the same time, cannot be used by safe code to break library safety invariants of Src or Self.
SharedCompatible
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 Src to a raw pointer to Self.
TransmuteFrom
Denotes that, for equally-sized referents, every bit pattern allowed for an SV-valid Src is also allowed for a DV-valid Self.
TransmuteFromPtr
Exact pointer reinterpretations which are always sound.
TryTransmuteFromPtr
Exact pointer reinterpretations which are sound to attempt, conditional on establishing the destination validity invariant.