pub unsafe trait ValuePod: Sized + Copy { }Expand description
Marker for Copy + Sized scalars/arrays that may be read by value
from raw bytes with read_unaligned_value (alignment-independent).
§Safety
Unlike Pod, ValuePod does not permit forming a &T overlay, so
it is safe to implement for native multi-byte integers. Use it for
instruction-argument decoding and local scalar loads where the value
is copied out, not referenced in place. Implementers assert every
[u8; size_of::<T>()] bit pattern decodes to a valid T.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".