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§
Sourcefn layout_raw(
metadata: <Self as Pointee>::Metadata,
) -> Result<Layout, LayoutError>
fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>
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
impl LayoutRaw for str
fn layout_raw( metadata: <Self as Pointee>::Metadata, ) -> Result<Layout, LayoutError>
Source§impl LayoutRaw for CStr
Available on crate feature std only.
impl LayoutRaw for CStr
Available on crate feature
std only.