pub const fn array_from_ref<T>(s: &T) -> &[T; 1]Expand description
๐๏ธ
core
Converts a reference to T into &[T; 1] (without copying).
๐data/layout/array re-exported from core::array ::from_ref as array_from_ref
๐
Converts a reference to T into a reference to an array of length 1 (without copying).