Compares the addresses of the two pointers for equality,
ignoring any metadata in fat pointers.
Copies count * size_of::<T>()
bytes from src
to dst
. The source
and destination may overlap.
Copies count * size_of::<T>()
bytes from src
to dst
. The source
and destination must not overlap.
Creates a new pointer that is dangling, but non-null and well-aligned.
Creates a new pointer that is dangling, but non-null and well-aligned.
Executes the destructor (if any) of the pointed-to value.
Compares raw pointers for equality.
Converts a mutable reference to a raw pointer.
Converts a reference to a raw pointer.
Hash a raw pointer.
Creates a null raw pointer.
Creates a null mutable raw pointer.
Reads the value from src
without moving it. This leaves the
memory in src
unchanged.
Reads the value from src
without moving it. This leaves the
memory in src
unchanged.
Performs a volatile read of the value from src
without moving it. This
leaves the memory in src
unchanged.
Moves src
into the pointed dst
, returning the previous dst
value.
Forms a raw slice from a pointer and a length.
Forms a raw mutable slice from a pointer and a length.
Swaps the values at two mutable locations of the same type, without
deinitializing either.
Swaps count * size_of::<T>()
bytes between the two regions of memory
beginning at x
and y
. The two regions must not overlap.
Converts an address back to a pointer, picking up some previously ‘exposed’
provenance.
Converts an address back to a mutable pointer, picking up some previously ‘exposed’
provenance.
Creates a pointer with the given address and no
provenance.
Creates a pointer with the given address and no
provenance.
Overwrites a memory location with the given value without reading or
dropping the old value.
Sets count * size_of::<T>()
bytes of memory starting at dst
to
val
.
Overwrites a memory location with the given value without reading or
dropping the old value.
Performs a volatile write of a memory location with the given value without
reading or dropping the old value.
Compares the addresses of the two function pointers for equality.
Forms a (possibly-wide) raw pointer from a data pointer and metadata.
Performs the same functionality as
from_raw_parts
, except that a
raw
*mut
pointer is returned, as opposed to a raw
*const
pointer.
Extracts the metadata component of a pointer.