[][src]Function alass::to_ptr

pub fn to_ptr<T>(value: T) -> *mut T

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.