Feature gate: #![feature(try_trait_v2_residual)]
This is a tracking issue for the ops::Residual
trait.
This is used by try_*
APIs that need to change from one member of a family to another, such as
try_array_from_fn
#89379array::try_map
#79711For example, the closure passed to Iterator::try_find
returns Foo<bool>
, but the method wants to be able to return Foo<Option<<Self as Iterator>::Item>>
.
// ops::Residual trait Residual<O> { type TryTrait: Try<Output = O, Residual = Self>; } // with implementations for `Result`, `Option`, and `ControlFlow`.Steps / History
array::{try_from_fn, try_map}
and Iterator::try_find
generic over Try
#91286Try::Residual
is renamed (an open question in Tracking Issue for try_trait_v2
, A new design for the ?
desugaring (RFC#3058) #84277), this this probably should be too.leighmcculloch, TheNullicorn, dzmitry-lahoda, SergioRibera, jpramosi and 3 moreBGR360 and dzmitry-lahoda
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4