Expand description
Traits for pointers.
Modules§
- immutable_
ref const
equivalents ofImmutableRef
methods.
Structs§
- PK_
MutReference - The type-level equivalent of
PointerKind::MutReference
. - PK_
Reference - The type-level equivalent of
PointerKind::Reference
. - PK_
Smart Pointer - The type-level equivalent of
PointerKind::SmartPointer
.
Enums§
- Call
Referent Drop - Determines whether the referent of a pointer is dropped when the pointer deallocates the memory.
- Deallocate
- Determines whether the pointer is deallocated.
- Pointer
Kind - Describes the kind of a pointer.
Traits§
- AsMut
Ptr - For getting a mutable raw pointer to the value that this points to.
- AsPtr
- For getting a const raw pointer to the value that this points to.
- CanTransmute
Element - Whether the pointer can be transmuted to an equivalent pointer with
T
as the referent type. - GetPointer
Kind - What kind of pointer this is.
- Immutable
Ref - Trait for non-owning pointers that are shared-reference-like.
- Owned
Pointer - For owned pointers, allows extracting their contents separate from deallocating them.
- Pointer
Kind Variant - For restricting types to the type-level equivalents of
PointerKind
variants. - Transmute
Element - Allows transmuting pointers to point to a different type.