pub struct AnyByLayout(/* private fields */);Implementations§
Source§impl AnyByLayout
impl AnyByLayout
pub const NONE: &mut Self
Sourcepub unsafe fn from_raw_parts<'a>(data: *mut u8, size: usize) -> &'a mut Self
pub unsafe fn from_raw_parts<'a>(data: *mut u8, size: usize) -> &'a mut Self
Creates an AnyByLayout from raw parts.
§Safety
This function is unsafe because it creates a reference from a raw pointer.
The caller must ensure that the pointer is valid for reads and writes
for size bytes and properly aligned.