Trait LayoutRaw

Source
pub trait LayoutRaw {
    // Required method
    fn layout_raw(value: *const Self) -> Layout;
}
Expand description

Gets the layout of a type from its pointer.

Required Methods§

Source

fn layout_raw(value: *const Self) -> Layout

Gets 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§

impl LayoutRaw for CStr

Source§

impl<T> LayoutRaw for [T]

Implementors§

Source§

impl<T> LayoutRaw for T