[−][src]Trait maligned::AsBytes
Trait that allows reinterpretation of a struct as bytes. This is unsafe since the returned slice must always have a length equal to the size of the struct and because every bit pattern within the structs size must be valid.
Required methods
#[must_use]fn as_bytes(&self) -> &[u8]
Turn a reference to self to a byte slice.