Function raw
pub fn raw<T: 'static>(data: T) -> Result<*mut T, PointerError>
Expand description
Get a heap-allocated raw pointer without ownership.
To back to manage the memory with ownership use own_back<T>()
.
ยงErrors
If the allocator reports a failure, then an error is returned.