Turns a mutable slice into a mutable reference to a Pod type if it's suitable.
fn from_mut_bytes<T>(buf: &mut [u8]) -> Option<&mut 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.