Turns a slice into a reference to a Pod type if it's suitable.
fn from_bytes<T>(buf: &[u8]) -> Option<&T>
where T: Pod,| Name | Description |
|---|---|
| buf | The buffer to be turned into a reference. |
Returns the created reference.
The buffer is suitable under the conditions described in is_suitable_for.