Function alass::to_ptr

source · []
pub fn to_ptr<T>(value: T) -> *mut T
Expand description

Moves an instance to the heap and returns it’s pointer. Value will not be dropped when the return value leaves scope. Useful for leaking values to be sent across an ffi boundary.