Expand description
A cheap conversion from a byte slice to typed data.
Given a reference to a byte slice, returns a different view of the same
data. No allocation is performed, however the underlying data might be
checked for correctness (for example when converting to str
).
See also the ToBytes
trait.