Expand description
Utilities for working with untyped pointers in a more safe way.
Structs
Type-erased Box-like pointer to some unknown type chosen when constructing this type.
Conceptually represents ownership of whatever data is being pointed to and so is
responsible for calling its
Drop
impl. This pointer is not responsible for freeing
the memory pointed to by this pointer as it may be pointing to an element in a Vec
or
to a local in a function etc.Type-erased borrow of some unknown type chosen when constructing this type.
Type-erased mutable borrow of some unknown type chosen when constructing this type.
Conceptually equivalent to
&'a [T]
but with length information cut out for performance reasonsTraits
Extension trait for helper methods on
UnsafeCell
Functions
Creates a dangling pointer with specified alignment.
See
NonNull::dangling
.