pub const fn array_from_ref<T>(s: &T) -> &[T; 1]
Expand description
core
Converts a reference to T
into &[T; 1]
(without copying).
Re-exported from core
::array::
from_ref
→array_from_ref
.
Converts a reference to T
into a reference to an array of length 1 (without copying).