abi_stable::pointer_trait

Trait PointerKindVariant

Source
pub trait PointerKindVariant: Sealed {
    const VALUE: PointerKind;
}
Expand description

For restricting types to the type-level equivalents of PointerKind variants.

This trait is sealed, cannot be implemented outside this module, and won’t be implemented for any more types.

Required Associated Constants§

Source

const VALUE: PointerKind

The value of the PointerKind variant Self is equivalent to.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PointerKindVariant for PK_MutReference

Source§

const VALUE: PointerKind = PointerKind::MutReference

Source§

impl PointerKindVariant for PK_Reference

Source§

const VALUE: PointerKind = PointerKind::Reference

Source§

impl PointerKindVariant for PK_SmartPointer

Source§

const VALUE: PointerKind = PointerKind::SmartPointer