This is a tracking issue for the unstable as_slice feature in the standard library. These functions enable viewing a Result<T, U> and Option<T> as some form of [T] (both shared and mutably). In each case an array of at most one item will be returned.
It's somewhat unclear (like with ref_slice and ref_mut_slice) how useful these are and whether they should exist to me.
This is a tracking issue for the unstable
as_slicefeature in the standard library. These functions enable viewing aResult<T, U>andOption<T>as some form of[T](both shared and mutably). In each case an array of at most one item will be returned.It's somewhat unclear (like with
ref_sliceandref_mut_slice) how useful these are and whether they should exist to me.