Function lrs::ptr::read

Reads a value from a pointer.

Syntax

unsafe fn read<T>(src: *const T) -> T

Arguments

NameDescription
src

The pointer that will be read from.

Return value

Returns the object pointed to by the pointer.