Trait rkyv::ArchivePointee[][src]

pub trait ArchivePointee: Pointee {
    type ArchivedMetadata;
    fn pointer_metadata(
        archived: &Self::ArchivedMetadata
    ) -> <Self as Pointee>::Metadata; }
Expand description

An archived type with associated metadata for its relative pointer.

This is mostly used in the context of smart pointers and unsized types, and is implemented for all sized types by default.

Associated Types

type ArchivedMetadata[src]

The archived version of the pointer metadata for this type.

Required methods

fn pointer_metadata(
    archived: &Self::ArchivedMetadata
) -> <Self as Pointee>::Metadata
[src]

Converts some archived metadata to the pointer metadata for itself.

Implementations on Foreign Types

impl<T> ArchivePointee for [T][src]

type ArchivedMetadata = ArchivedUsize

fn pointer_metadata(
    archived: &Self::ArchivedMetadata
) -> <Self as Pointee>::Metadata
[src]

impl ArchivePointee for str[src]

type ArchivedMetadata = ArchivedUsize

fn pointer_metadata(
    archived: &Self::ArchivedMetadata
) -> <Self as Pointee>::Metadata
[src]

Implementors