pub trait DynDynCastTarget: Sealed {
    type Root: ?Sized;

    fn ptr_into_parts(
        ptr: NonNull<Self>
    ) -> (NonNull<()>, DynMetadata<Self::Root>); fn ptr_from_parts(
        data: NonNull<()>,
        meta: DynMetadata<Self::Root>
    ) -> NonNull<Self>; fn meta_for_ty<U: Unsize<Self>>() -> DynMetadata<Self::Root>; }
Expand description

A type whose pointer metadata can be stored in a DynDynTable.

Required Associated Types

The root type that the trait object metadata is for.

Required Methods

Splits a fat pointer into its data pointer and metadata.

Combines a data pointer with the provided metadata to produce a fat pointer.

Gets the metadata that would be used for an object of concrete type U when cast to this type.

Implementors