Trait for types that can initialize their padding in their bytes representation.
This trait's implementation should be able to produce initialized
bytes slice that contain original structure raw
It is safe to implement it in wrong way.
But it is advised to derive
SafeBytes if possible.
PaddingBane instead if deriving is not possible,
SafeBytes has blanket implementation for
fn safe_bytes(&mut self) -> &[u8]
Returns bytes representation of the value, initializing all padding bytes
impl<T> SafeBytes for T where[src]
impl<T> SafeBytes for [T] where[src]