Returns the mutable in-memory representation of an object.
fn as_mut_bytes<T>(val: &mut T) -> &mut [u8]
where T: Pod,| Name | Description |
|---|---|
| val | The object whose representation is returned. |
This only accepts Pod data because the return value can be used to store arbitrary data in val.