@@ -61,7 +61,7 @@ use SmallVecData::{Inline, Heap};
61
61
/// ## Example
62
62
///
63
63
/// ```rust
64
- /// use smallvec::{VecLike, SmallVec8 };
64
+ /// use smallvec::{VecLike, SmallVec };
65
65
///
66
66
/// fn initialize<V: VecLike<u8>>(v: &mut V) {
67
67
/// for i in 0..5 {
@@ -72,7 +72,7 @@ use SmallVecData::{Inline, Heap};
72
72
/// let mut vec = Vec::new();
73
73
/// initialize(&mut vec);
74
74
///
75
- /// let mut small_vec = SmallVec8 ::new();
75
+ /// let mut small_vec = SmallVec::<[u8; 8]> ::new();
76
76
/// initialize(&mut small_vec);
77
77
/// ```
78
78
pub trait VecLike < T > :
@@ -105,7 +105,7 @@ impl<T> VecLike<T> for Vec<T> {
105
105
/// ## Example
106
106
///
107
107
/// ```rust
108
- /// use smallvec::{ExtendFromSlice, SmallVec8 };
108
+ /// use smallvec::{ExtendFromSlice, SmallVec };
109
109
///
110
110
/// fn initialize<V: ExtendFromSlice<u8>>(v: &mut V) {
111
111
/// v.extend_from_slice(b"Test!");
@@ -115,7 +115,7 @@ impl<T> VecLike<T> for Vec<T> {
115
115
/// initialize(&mut vec);
116
116
/// assert_eq!(&vec, b"Test!");
117
117
///
118
- /// let mut small_vec = SmallVec8 ::new();
118
+ /// let mut small_vec = SmallVec::<[u8; 8]> ::new();
119
119
/// initialize(&mut small_vec);
120
120
/// assert_eq!(&small_vec as &[_], b"Test!");
121
121
/// ```
@@ -227,19 +227,13 @@ impl<A: Array> Drop for SmallVecData<A> {
227
227
/// store can be any type that implements the `Array` trait; usually it is a small fixed-sized
228
228
/// array. For example a `SmallVec<[u64; 8]>` can hold up to eight 64-bit integers inline.
229
229
///
230
- /// Type aliases like `SmallVec8<T>` are provided as convenient shorthand for types like
231
- /// `SmallVec<[T; 8]>`.
232
- ///
233
230
/// ## Example
234
231
///
235
232
/// ```rust
236
233
/// use smallvec::SmallVec;
237
234
/// let mut v = SmallVec::<[u8; 4]>::new(); // initialize an empty vector
238
235
///
239
- /// use smallvec::SmallVec4;
240
- /// let mut v: SmallVec4<u8> = SmallVec::new(); // alternate way to write the above
241
- ///
242
- /// // SmallVec4 can hold up to 4 items without spilling onto the heap.
236
+ /// // The vector can hold up to 4 items without spilling onto the heap.
243
237
/// v.extend(0..4);
244
238
/// assert_eq!(v.len(), 4);
245
239
/// assert!(!v.spilled());
@@ -406,14 +400,6 @@ impl<A: Array> SmallVec<A> {
406
400
}
407
401
}
408
402
409
- /// Append elements from an iterator.
410
- ///
411
- /// This function is deprecated; it has been replaced by `Extend::extend`.
412
- #[ deprecated( note = "Use `extend` instead" ) ]
413
- pub fn push_all_move < V : IntoIterator < Item =A :: Item > > ( & mut self , other : V ) {
414
- self . extend ( other)
415
- }
416
-
417
403
/// Remove an item from the end of the vector and return it, or None if empty.
418
404
#[ inline]
419
405
pub fn pop ( & mut self ) -> Option < A :: Item > {
@@ -1040,36 +1026,6 @@ impl<'a, A: Array> IntoIterator for &'a mut SmallVec<A> {
1040
1026
}
1041
1027
}
1042
1028
1043
- // TODO: Remove these and its users.
1044
-
1045
- /// Deprecated alias to ease transition from an earlier version.
1046
- #[ deprecated]
1047
- pub type SmallVec1 < T > = SmallVec < [ T ; 1 ] > ;
1048
-
1049
- /// Deprecated alias to ease transition from an earlier version.
1050
- #[ deprecated]
1051
- pub type SmallVec2 < T > = SmallVec < [ T ; 2 ] > ;
1052
-
1053
- /// Deprecated alias to ease transition from an earlier version.
1054
- #[ deprecated]
1055
- pub type SmallVec4 < T > = SmallVec < [ T ; 4 ] > ;
1056
-
1057
- /// Deprecated alias to ease transition from an earlier version.
1058
- #[ deprecated]
1059
- pub type SmallVec8 < T > = SmallVec < [ T ; 8 ] > ;
1060
-
1061
- /// Deprecated alias to ease transition from an earlier version.
1062
- #[ deprecated]
1063
- pub type SmallVec16 < T > = SmallVec < [ T ; 16 ] > ;
1064
-
1065
- /// Deprecated alias to ease transition from an earlier version.
1066
- #[ deprecated]
1067
- pub type SmallVec24 < T > = SmallVec < [ T ; 24 ] > ;
1068
-
1069
- /// Deprecated alias to ease transition from an earlier version.
1070
- #[ deprecated]
1071
- pub type SmallVec32 < T > = SmallVec < [ T ; 32 ] > ;
1072
-
1073
1029
/// Types that can be used as the backing store for a SmallVec
1074
1030
pub unsafe trait Array {
1075
1031
type Item ;
0 commit comments