Function opaque_pointer::own_back

pub unsafe fn own_back<T>(pointer: *mut T) -> Result<T, PointerError>
Expand description

Opposite of raw<T>(), to use Rust’s ownership as usually.

Errors

The pointer must be not null as it is an obvious invalid pointer.

Safety

Invalid pointer or call it twice could cause an undefined behavior or heap error and a crash.