rkyv::traits

Trait LayoutRaw

Source
pub trait LayoutRaw
where Self: Pointee,
{ // Required method fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>; }
Expand description

Returns the layout of a type from its metadata.

Required Methods§

Source

fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>

Returns the layout of the type.

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.

Implementations on Foreign Types§

Source§

impl LayoutRaw for str

Source§

fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>

Source§

impl LayoutRaw for CStr

Source§

fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>

Source§

impl<T> LayoutRaw for [T]

Source§

fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>

Implementors§

Source§

impl<T> LayoutRaw for T