Feature gate: #![feature(result_into_ok_or_err)]
This is a tracking issue for Result::into_ok_or_err, a method to get the T out of Result<T, T> regardless of which variant is active.
Public API
impl<T> Result<T, T> {
pub const fn into_ok_or_err(self) -> T;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(result_into_ok_or_err)]This is a tracking issue for
Result::into_ok_or_err, a method to get theTout ofResult<T, T>regardless of which variant is active.Public API
Steps / History
Result::into_ok_or_errmethod to extract aTfromResult<T, T>#80572Unresolved Questions
What color should the bikeshed beWhat name should it have?Some options that have been suggested:
Result::into_ok_or_errResult::ok_or_errResult::into_eitherResult::into_innerResult::either_valueResult::unwrap_eitherResult::{value,into_value} #79315 proposed?