Feature gate: #![feature(control_flow_ok)]
This is a tracking issue for ControlFlow::continue_ok and ControlFlow::break_ok, as proposed in rust-lang/libs-team#444.
(The other part of this ACP was already implemented in #137449.)
Public API
impl<B, C> ControlFlow<B, C> {
const fn continue_ok(self) -> Result<C, B>;
const fn break_ok(self) -> Result<B, C>;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(control_flow_ok)]This is a tracking issue for
ControlFlow::continue_okandControlFlow::break_ok, as proposed in rust-lang/libs-team#444.(The other part of this ACP was already implemented in #137449.)
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩