Trait abi_stable::pointer_trait::GetPointerKind [−][src]
pub unsafe trait GetPointerKind: Sized {
type Kind: PointerKindVariant;
type PtrTarget;
const KIND: PointerKind;
}
Expand description
What kind of pointer this is.
The valid kinds are:
-
Reference:a
&T
,or aCopy
wrapper struct containing a&T
-
MutReference:a
&mut T
,or a non-Drop
wrapper struct containing a&mut T
-
SmartPointer: Any pointer type that’s not a reference or a mutable reference.
Associated Types
type Kind: PointerKindVariant
type Kind: PointerKindVariant
The kind of the pointer.
Associated Constants
const KIND: PointerKind
const KIND: PointerKind
The kind of the pointer.