Skip to content

Tracking issue for viewing Result/Option as slices #27776

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

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions