Module abi_stable::pointer_trait

source ·
Expand description

Traits for pointers.

Modules§

Structs§

Enums§

  • Determines whether the referent of a pointer is dropped when the pointer deallocates the memory.
  • Determines whether the pointer is deallocated.
  • Describes the kind of a pointer.

Traits§

  • For getting a mutable raw pointer to the value that this points to.
  • For getting a const raw pointer to the value that this points to.
  • Whether the pointer can be transmuted to an equivalent pointer with T as the referent type.
  • What kind of pointer this is.
  • Trait for non-owning pointers that are shared-reference-like.
  • For owned pointers, allows extracting their contents separate from deallocating them.
  • For restricting types to the type-level equivalents of PointerKind variants.
  • Allows transmuting pointers to point to a different type.