Module std::ptr 1.0.0
[−]
[src]
Raw, unsafe pointers, *const T
, and *mut T
.
Structs
Shared |
[ Experimental ] A wrapper around a raw non-null |
Unique |
[ Experimental ] A wrapper around a raw non-null |
Functions
copy⚠ |
Copies |
copy_nonoverlapping⚠ |
Copies |
drop_in_place⚠ |
Executes the destructor (if any) of the pointed-to value. |
null |
Creates a null raw pointer. |
null_mut |
Creates a null mutable raw pointer. |
read⚠ |
Reads the value from |
read_volatile⚠ |
Performs a volatile read of the value from |
replace⚠ |
Replaces the value at |
swap⚠ |
Swaps the values at two mutable locations of the same type, without
deinitializing either. They may overlap, unlike |
write⚠ |
Overwrites a memory location with the given value without reading or dropping the old value. |
write_bytes⚠ |
Invokes memset on the specified pointer, setting |
write_volatile⚠ |
Performs a volatile write of a memory location with the given value without reading or dropping the old value. |
eq |
[ Experimental ] Compare raw pointers for equality. |
read_unaligned⚠ |
[ Experimental ] Reads the value from |
write_unaligned⚠ |
[ Experimental ] Overwrites a memory location with the given value without reading or dropping the old value. |