pub fn ref_to_mut<T>(reference: &T) -> *mut T
Expand description

Casts &T to *mut T for getting mutable access from a immutable reference.

Safety

This function isn’t unsafe, but dereferencing the returned pointer is.