Function core::array::from_mut

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

将变量引用转换为 T,将变量引用转换为长度为 1 的数组 (不进行复制)。