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 a Copy 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

The kind of the pointer.

What this pointer points to, if the type implements std::ops::Deref it must be the same as <Self as Deref>::Target.

This is here so that pointers don’t have to implement Deref.

Associated Constants

The kind of the pointer.

Implementations on Foreign Types

Implementors