Module bevy::ptr

source ·
Expand description

Utilities for working with untyped pointers in a more safe way.

Structs

  • Used as a type argument to Ptr, PtrMut and OwningPtr to specify that the pointer is aligned.
  • 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 reasons
  • Used as a type argument to Ptr, PtrMut and OwningPtr to specify that the pointer is not aligned.

Traits

Functions