pub fn ref_slice<A>(s: &A) -> &[A]
👎Deprecated: Similar method was added to std and stabilized in rust 1.28.0. Use
core::slice::from_ref
instead.Expand description
Converts a reference to A
into a slice of length 1 (without copying).