Function ref_slice::ref_slice [−][src]
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.
Converts a reference to A
into a slice of length 1 (without copying).