Skip to main content
Module transmute
zerocopy
0.8.50
Module transmute
Module Items
Enums
Traits
In zerocopy::
pointer
zerocopy
::
pointer
Module
transmute
Copy item path
Source
Enums
§
Because
Invariants
Eq
Because
Mutation
Compatible
Because
Read
Traits
§
Invariants
Eq
Denotes that two types have the same invariants.
Mutation
Compatible
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
.
SizeEq
Carries the ability to perform a size-preserving cast or conversion from a raw pointer to
Src
to a raw pointer to
Self
.
Transmute
From
Denotes that any
SV
-valid
Src
may soundly be transmuted into a
DV
-valid
Self
.
Transmute
From
Ptr
Transmutations which are always sound.
TryTransmute
From
Ptr
Transmutations which are sound to attempt, conditional on validating the bit validity of the destination type.