devela::_dep::rkyv::traits

Trait LayoutRaw

pub trait LayoutRaw: Pointee {
    // Required method
    fn layout_raw(metadata: Self::Metadata) -> Result<Layout, LayoutError> ;
}
Available on crate feature dep_rkyv only.
Expand description

Returns the layout of a type from its metadata.

Required Methods§

fn layout_raw(metadata: Self::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§

§

impl LayoutRaw for str

§

impl<T> LayoutRaw for [T]

Implementors§

§

impl LayoutRaw for CStr

§

impl<T> LayoutRaw for T