[][src]Module abi_stable::pointer_trait

Traits for pointers.

Structs

ImmutableRefTarget

A marker type that can be used as a proof that the T type parameter of ImmutableRefTarget<T, U> implements ImmutableRef<Target = U>.

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 referent type.

GetPointerKind

What kind of pointer this is.

ImmutableRef

Trait for non-owning pointers that are shared-reference-like.

OwnedPointer

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

PointerKindVariant

A type-level equivalent of a PointerKind variant.

TransmuteElement

Allows transmuting pointers to point to a different type.

Type Definitions

ImmutableRefOut

Gets the ImmutableRef::Target associated type for T.