Function core::slice::ref_sliceUnstable [-] [+] [src]

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

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