pub trait Map<T1> { type Target<T2>; // Required method fn map_box<T2>(self, f: impl FnMut(T1) -> T2) -> Self::Target<T2>; }
Returns a box, with function f applied to the value inside. This function will re-use the allocation when possible.