Is there any plans to support Into<Outcome> for Result and Optional? #2150
-
I noticed that i couldn't use try(?) operator on Outcome type when i try to implement FromRequest for my own type. Is there any plans to provide impl Into for Result and Optional? |
Beta Was this translation helpful? Give feedback.
Answered by
SergioBenitez
Apr 24, 2022
Replies: 1 comment
-
It's not quite so simple. What you're asking for is not possible on Rust stable. To circumvent, we have the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hasunwoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not quite so simple. What you're asking for is not possible on Rust stable. To circumvent, we have the
try_outcome!
macro which does the same thing ? would do. See #597 for more.