pub trait AsBytes {
// Provided methods
unsafe fn as_bytes(&self) -> &[u8] ⓘ { ... }
unsafe fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ { ... }
}Expand description
Return a slice of the memory that contains the struct
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".