pub unsafe trait ContainerElement: Sized {
const BUF_SIZE: u32;
const RAW_COPYABLE: bool = false;
// Required methods
unsafe fn read_from_buf(buf: *const u8, written: u32) -> Self;
unsafe fn write_to_buf(&self, buf: *mut u8) -> u32;
}Required Associated Constants§
Provided Associated Constants§
const RAW_COPYABLE: bool = false
Required Methods§
unsafe fn read_from_buf(buf: *const u8, written: u32) -> Self
unsafe fn write_to_buf(&self, buf: *mut u8) -> u32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".