Function std::slice::ref_slice [] [src]

pub fn ref_slice<A>(s: &'a A) -> &'a [A]
Unstable (ref_slice #27774)

Converts a pointer to A into a slice of length 1 (without copying).