Skip to content

Commit 76e80f3

Browse files
author
bors-servo
authored
Auto merge of #27 - nipunn1313:extend, r=nox
Support std::iter::extend<T> for VecLike<T> VecLike naturally supports push, so it also makes sense to support extend. Both implementors SmallVec and Vec already have tested implementations, so this extension feels natural. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/27) <!-- Reviewable:end -->
2 parents 7e07fc0 + e7e970a commit 76e80f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ pub trait VecLike<T>:
3030
ops::Index<ops::RangeFull, Output=[T]> +
3131
ops::IndexMut<ops::RangeFull> +
3232
ops::Deref +
33-
ops::DerefMut {
33+
ops::DerefMut +
34+
Extend<T> {
3435

3536
fn len(&self) -> usize;
3637
fn push(&mut self, value: T);

0 commit comments

Comments
 (0)