[][src]Function ref_slice::ref_slice

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

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