Open
Description
Feature gate: #![feature(try_trait_v2_yeet)]
This is a tracking issue for standard library additions related to #96373, which for now means the ops::Yeet
struct and related impl
s.
It currently exists experimentally. Per the lang process, this cannot go further than experimenting without an approved RFC -- and will certainly not stabilize under the name Yeet
. Please try this out and give experience reports, but be aware that it may well change drastically or be removed entirely.
Public API
// core::ops
pub struct Yeet<E>(pub E);
impl<T> ops::FromResidual<ops::Yeet<()>> for Option<T>;
impl<T, E, F: From<E>> ops::FromResidual<ops::Yeet<E>> for Result<T, F>;
Steps / History
- Implementation: Add
do yeet
expressions to allow experimentation in nightly #96376 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- The name, of course.
Activity