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

Gets the layout of a type from its pointee type and metadata.

Required Methods§

source

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

Gets the layout of the type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl LayoutRaw for str

source§

impl LayoutRaw for CStr

source§

impl<T> LayoutRaw for [T]

Implementors§

source§

impl<T> LayoutRaw for T