[−][src]Trait heaparray::UnsafeArrayRef
A reference to a heap-allocated array whose safe API guarrantees it to always be non-null.
Required methods
unsafe fn from_raw_parts(ptr: &'a mut B) -> Self
Creates a new array from a raw pointer to a memory block.
unsafe fn to_null<'b>(&mut self) -> &'b mut B
Sets the internal pointer to null, without deallocating it, and returns reference to the associated memory block. Causes all sorts of undefined behavior, use with caution.
unsafe fn null_ref() -> Self
Creates a null array. All kinds of UB associated with this, use with caution.