Closed antiguru closed 6 months ago
Extract MapInPlace from Map; make Map GAT-aware
This allows us to implement map for TimelyStack.
map
TimelyStack
Note that this is a breaking change because the map_in_place methods moves from the Map trait to the new MapInPlace trait. This is required because it needs mutable access to data, which TimelyStack (and others) cannot provide.
map_in_place
Map
MapInPlace
Handled elsewhere.
Extract MapInPlace from Map; make Map GAT-aware
This allows us to implement
map
forTimelyStack
.Note that this is a breaking change because the
map_in_place
methods moves from theMap
trait to the newMapInPlace
trait. This is required because it needs mutable access to data, whichTimelyStack
(and others) cannot provide.