[][src]Module no_std_compat::ptr

Macros

raw_constExperimental

Create a const raw pointer to a place, without creating an intermediate reference.

raw_mutExperimental

Create a mut raw pointer to a place, without creating an intermediate reference.

Structs

NonNull

*mut T but non-zero and covariant.

Functions

copy

Copies count * size_of::<T>() bytes from src to dst. The source and destination may overlap.

copy_nonoverlapping

Copies count * size_of::<T>() bytes from src to dst. The source and destination must not overlap.

drop_in_place

Executes the destructor (if any) of the pointed-to value.

eq

Compares raw pointers for equality.

hash

Hash a raw pointer.

null

Creates a null raw pointer.

null_mut

Creates a null mutable raw pointer.

read

Reads the value from src without moving it. This leaves the memory in src unchanged.

read_unaligned

Reads the value from src without moving it. This leaves the memory in src unchanged.

read_volatile

Performs a volatile read of the value from src without moving it. This leaves the memory in src unchanged.

replace

Moves src into the pointed dst, returning the previous dst value.

slice_from_raw_parts

Forms a raw slice from a pointer and a length.

slice_from_raw_parts_mut

Performs the same functionality as slice_from_raw_parts, except that a raw mutable slice is returned, as opposed to a raw immutable slice.

swap

Swaps the values at two mutable locations of the same type, without deinitializing either.

swap_nonoverlapping

Swaps count * size_of::<T>() bytes between the two regions of memory beginning at x and y. The two regions must not overlap.

write

Overwrites a memory location with the given value without reading or dropping the old value.

write_bytes

Sets count * size_of::<T>() bytes of memory starting at dst to val.

write_unaligned

Overwrites a memory location with the given value without reading or dropping the old value.

write_volatile

Performs a volatile write of a memory location with the given value without reading or dropping the old value.