Closed
Description
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Blocker: Implemented in the nightly compiler and unstable.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Relevant to the library API team, which will review and decide on the PR/issue.In the final comment period and will be merged soon unless new substantive objections are raised.