Module abi_stable::pointer_trait[][src]

Expand description

Traits for pointers.

Structs

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

The type-level equivalent of PointerKind::MutReference.

The type-level equivalent of PointerKind::Reference.

The type-level equivalent of PointerKind::SmartPointer.

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.

A type-level equivalent of a PointerKind variant.

Allows transmuting pointers to point to a different type.

Type Definitions

Gets the ImmutableRef::Target associated type for T.