[][src]Module abi_stable::pointer_trait

Traits for pointers.

Structs

PK_MutReference

The type-level equivalent of PointerKind::MutReference.

PK_Reference

The type-level equivalent of PointerKind::Reference.

PK_SmartPointer

The type-level equivalent of PointerKind::SmartPointer.

Enums

CallReferentDrop

Determines whether the referent of a pointer is dropped when the pointer deallocates the memory.

Deallocate

Determines whether the pointer is deallocated.

PointerKind

Describes the kind of a pointer.

Traits

CanTransmuteElement

Whether the pointer can be transmuted to have T as the element type.

GetPointerKind

What kind of pointer this is.

OwnedPointer

For owned pointers,allows extracting their contents separate from deallocating them.

PointerKindVariant

A type-level equivalent of a PointerKind variant.

TransmuteElement

An extension trait which allows transmuting pointers to point to a different type.