ref_slice

Function opt_slice_mut

source
pub fn opt_slice_mut<A>(opt: &mut Option<A>) -> &mut [A]
Expand description

Converts a reference to Option<A> into a slice of length 0 or 1 (without copying).