Function std::slice::from_mut

1.28.0 (const: unstable) · source ·
pub fn from_mut<T>(s: &mut T) -> &mut [T]
Expand description

将引用转换为 T 转换为长度为 1 的切片 (不进行复制)。