Function core::slice::ref_slice [−] [src]

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

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