File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use std:: cmp;
9
9
use std:: fmt;
10
- use std:: iter:: { IntoIterator , FromIterator } ;
10
+ use std:: iter:: { Extend , IntoIterator , FromIterator } ;
11
11
use std:: mem;
12
12
use std:: ops;
13
13
use std:: ptr;
@@ -28,7 +28,8 @@ pub trait VecLike<T>:
28
28
ops:: Index < ops:: RangeFull , Output =[ T ] > +
29
29
ops:: IndexMut < ops:: RangeFull > +
30
30
ops:: Deref +
31
- ops:: DerefMut {
31
+ ops:: DerefMut +
32
+ Extend < T > {
32
33
33
34
fn len ( & self ) -> usize ;
34
35
fn push ( & mut self , value : T ) ;
@@ -361,8 +362,8 @@ impl<A: Array> FromIterator<A::Item> for SmallVec<A> {
361
362
}
362
363
}
363
364
364
- impl < A : Array > SmallVec < A > {
365
- pub fn extend < I : IntoIterator < Item =A :: Item > > ( & mut self , iterable : I ) {
365
+ impl < A : Array > Extend < A :: Item > for SmallVec < A > {
366
+ fn extend < I : IntoIterator < Item =A :: Item > > ( & mut self , iterable : I ) {
366
367
let iter = iterable. into_iter ( ) ;
367
368
let ( lower_size_bound, _) = iter. size_hint ( ) ;
368
369
You can’t perform that action at this time.
0 commit comments