Function lrs::mem::as_mut_slice

Turns a mutable reference into a mutable one-element slice.

Syntax

fn as_mut_slice<T>(val: &mut T) -> &mut [T]

Arguments

NameDescription
val

The object that will be the element of the slice.