Closed
Description
Feature gate: #![feature(bound_map)]
This is a tracking issue for providing a map
method on Bound
. This method calls a function on the contained value of a Bound
(including both Included
and Exclcuded
, returning a Bound
of the same kind.
Public API
impl<T> Bound<T> {
pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Bound<U>;
}
Steps / History
- Implementation: Add a map method to Bound #83646
- Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.