Module std::ptr
[−]
[src]
Raw, unsafe pointers, *const T
, and *mut T
Structs
Shared |
[Unstable] A wrapper around a raw |
Unique |
[Unstable] A wrapper around a raw |
Functions
copy |
Copies |
copy_nonoverlapping |
Copies |
null |
Creates a null raw pointer. |
null_mut |
Creates a null mutable raw pointer. |
read |
Reads 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 |
drop_in_place |
[Unstable] Executes the destructor (if any) of the pointed-to value. |
read_and_drop |
[Unstable] Variant of read_and_zero that writes the specific drop-flag byte (which may be more appropriate than zero). |