Skip to content

Commit 5a44898

Browse files
committed
impl RangeArgument for usize?
1 parent 73caab5 commit 5a44898

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
@@ -220,3 +220,7 @@ not every program needs it, and standard library growth has a maintainance cost.
220220
* If coherence rules and backward-compatibility allow it,
221221
this functionality could be added to `Vec::insert` and `String::insert`
222222
by overloading them / making them more generic.
223+
This would probably require implementing `RangeArgument` for `usize`
224+
representing an empty range,
225+
though a range of length 1 would maybe make more sense for `Vec::drain`
226+
(another user of `RangeArgument`).

0 commit comments

Comments
 (0)