pub unsafe trait Metadata<T: Pointee<Metadata = Self> + ?Sized>: Copy + Send + Sync + Ord + Hash + Unpin {
    unsafe fn pointee_layout(self) -> Layout;
}
Expand description

Pointer metadata that can determine the memory layout of its pointee.

Safety

pointee_layout must return the correct layout of a T pointee with this metadata.

Required Methods

Returns the layout of a T pointee with the this metadata.

Safety

self must be valid metadata for T.

Implementations on Foreign Types

Implementors