Function collections::slice::ref_slice
[−]
[src]
pub fn ref_slice<A>(s: &A) -> &[A]
Deprecated since 1.5.0
: unclear whether belongs in libstd
Converts a reference to A into a slice of length 1 (without copying).