Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for viewing Result/Option as slices #27776
Comments
alexcrichton
added
T-libs
B-unstable
E-easy
labels
Aug 13, 2015
This comment has been minimized.
This comment has been minimized.
|
These can be trivially implemented in terms of |
This comment has been minimized.
This comment has been minimized.
|
Which in turn can be trivially implemented in terms of |
alexcrichton
added
the
final-comment-period
label
Aug 14, 2015
This comment has been minimized.
This comment has been minimized.
|
This feature is now entering its final comment period for deprecation |
This comment has been minimized.
This comment has been minimized.
|
This seems like it could be pretty useful in some niche scenarios, although admittedly I haven't personally run into any of those niches. It seems useful enough though that I'm not sure that this should be deprecated. |
This comment has been minimized.
This comment has been minimized.
|
As usual, I think there's little harm in providing additional conversions that follow the usual conventions. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 10, 2015
alexcrichton
referenced this issue
Sep 10, 2015
Merged
std: Stabilize/deprecate features for 1.4 #28339
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 10, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 10, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 10, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 10, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 11, 2015
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 13, 2015
bors
added a commit
that referenced
this issue
Sep 13, 2015
bors
closed this
in
#28339
Sep 13, 2015
steveklabnik
added this to the 1.3 milestone
Sep 18, 2015
steveklabnik
modified the milestones:
1.4,
1.3
Oct 1, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alexcrichton commentedAug 13, 2015
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.