[src]

Function std::slice::ref_slice

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

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