Function lrs::mem::as_mut_bytes

Returns the mutable in-memory representation of an object.

Syntax

fn as_mut_bytes<T>(val: &mut T) -> &mut [u8]
    where T: Pod,

Arguments

NameDescription
val

The object whose representation is returned.

Remarks

This only accepts Pod data because the return value can be used to store arbitrary data in val.