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.
Metadata
Metadata
Assignees
Labels
Area: `[T; N]`Area: `[T; N]`Category: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.