pub unsafe fn to_ref<'a, T>(ptr: *const T) -> &'a T
Expand description

Casts a pointer to an immutable reference.

Safety

NO