pub trait LayoutRawwhere
    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.

Implementations on Foreign Types§

source§

impl LayoutRaw for str

source§

impl<T> LayoutRaw for [T]

source§

impl LayoutRaw for CStr

Implementors§

source§

impl<T> LayoutRaw for T