pub trait AsBytes { fn as_bytes(&self) -> &[u8]; }
Defines a zero-copy representation of Self as a sequence of bytes.
Self
Returns a byte representation of self.
self
This method is intended to re-interpret the underlying memory as a sequence of bytes, and thus, should be zero-copy.
Flattens a two-dimensional array of bytes into a slice of bytes.
Flattens a slice of byte arrays into a slice of bytes.