pub fn opt_slice<A>(opt: &Option<A>) -> &[A]
Converts a reference to Option<A> into a slice of length 0 or 1 (without copying).
Option<A>