pub trait ZeroCopy: Pod {
// Provided methods
fn load_mut_bytes<'a>(data: &'a mut [u8]) -> Result<&'a mut Self> { ... }
fn load_bytes<'a>(data: &'a [u8]) -> Result<&'a Self> { ... }
}
Provided Methods§
fn load_mut_bytes<'a>(data: &'a mut [u8]) -> Result<&'a mut Self>
fn load_bytes<'a>(data: &'a [u8]) -> Result<&'a Self>
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.