Skip to content

Commit 73caab5

Browse files
committed
replace_slice -> insert?
1 parent 22d0dea commit 73caab5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/0000-replace-slice.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,7 @@ not every program needs it, and standard library growth has a maintainance cost.
216216
only when the returned iterator is advanced or dropped.
217217
There’s is precedent of this in `Vec::drain`,
218218
though the input iterator being lazily consumed could be surprising.
219+
220+
* If coherence rules and backward-compatibility allow it,
221+
this functionality could be added to `Vec::insert` and `String::insert`
222+
by overloading them / making them more generic.

0 commit comments

Comments
 (0)