Function std::array::from_ref

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

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