Open
Description
Feature gate: #![feature(array_try_map)]
This is a tracking issue for
Public API
https://doc.rust-lang.org/nightly/std/primitive.array.html#method.try_map
impl<T, const N: usize> [T; N] {
pub fn try_map<F, R>(
self,
f: F
) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
where
F: FnMut(T) -> R,
R: Try,
<R as Try>::Residual: Residual<[<R as Try>::Output; N]>;
}
Steps / History
- Implementation:
array::try_map #79713Makearray::{try_from_fn, try_map}
andIterator::try_find
generic overTry
#91286 - Decide on just-
Result
, vs potentially supportingOption
and otherTry
types Decide on generic-ness of functions likeIterator::try_find
andarray::try_map
#85115 - Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.