New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

&Option<String> -> Option<&str> #50264

Open
U007D opened this Issue Apr 27, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@U007D
Contributor

U007D commented Apr 27, 2018

&Option -> Option<&str> and related functionality for Result (&Result<T, E> -> Result<&T, &E>) seem to be missing in std.

Conversations with @lucasem @QuietMisdreavus, @durka and UndeadLeech on irc led us to create this issue: namely to have a single-shot Option/Result function to map through Deref.

@U007D

This comment has been minimized.

Contributor

U007D commented Apr 27, 2018

closed prematurely

@U007D U007D reopened this Apr 27, 2018

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Jul 30, 2018

bors added a commit that referenced this issue Jul 31, 2018

Auto merge of #50267 - humanenginuity:master, r=alexcrichton
Implement inner deref for Option and Result

tracking issue: #50264

bors added a commit that referenced this issue Jul 31, 2018

Auto merge of #50267 - humanenginuity:master, r=alexcrichton
Implement inner deref for Option and Result

tracking issue: #50264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment