@@ -62,7 +62,7 @@ use SmallVecData::{Inline, Heap};
62
62
/// ## Example
63
63
///
64
64
/// ```rust
65
- /// use smallvec::{VecLike, SmallVec8 };
65
+ /// use smallvec::{VecLike, SmallVec };
66
66
///
67
67
/// fn initialize<V: VecLike<u8>>(v: &mut V) {
68
68
/// for i in 0..5 {
@@ -73,7 +73,7 @@ use SmallVecData::{Inline, Heap};
73
73
/// let mut vec = Vec::new();
74
74
/// initialize(&mut vec);
75
75
///
76
- /// let mut small_vec = SmallVec8 ::new();
76
+ /// let mut small_vec = SmallVec::<[u8; 8]> ::new();
77
77
/// initialize(&mut small_vec);
78
78
/// ```
79
79
#[ deprecated( note = "Use `Extend` and `Deref<[T]>` instead" ) ]
@@ -108,7 +108,7 @@ impl<T> VecLike<T> for Vec<T> {
108
108
/// ## Example
109
109
///
110
110
/// ```rust
111
- /// use smallvec::{ExtendFromSlice, SmallVec8 };
111
+ /// use smallvec::{ExtendFromSlice, SmallVec };
112
112
///
113
113
/// fn initialize<V: ExtendFromSlice<u8>>(v: &mut V) {
114
114
/// v.extend_from_slice(b"Test!");
@@ -118,7 +118,7 @@ impl<T> VecLike<T> for Vec<T> {
118
118
/// initialize(&mut vec);
119
119
/// assert_eq!(&vec, b"Test!");
120
120
///
121
- /// let mut small_vec = SmallVec8 ::new();
121
+ /// let mut small_vec = SmallVec::<[u8; 8]> ::new();
122
122
/// initialize(&mut small_vec);
123
123
/// assert_eq!(&small_vec as &[_], b"Test!");
124
124
/// ```
@@ -235,19 +235,13 @@ impl<A: Array> Drop for SmallVecData<A> {
235
235
/// store can be any type that implements the `Array` trait; usually it is a small fixed-sized
236
236
/// array. For example a `SmallVec<[u64; 8]>` can hold up to eight 64-bit integers inline.
237
237
///
238
- /// Type aliases like `SmallVec8<T>` are provided as convenient shorthand for types like
239
- /// `SmallVec<[T; 8]>`.
240
- ///
241
238
/// ## Example
242
239
///
243
240
/// ```rust
244
241
/// use smallvec::SmallVec;
245
242
/// let mut v = SmallVec::<[u8; 4]>::new(); // initialize an empty vector
246
243
///
247
- /// use smallvec::SmallVec4;
248
- /// let mut v: SmallVec4<u8> = SmallVec::new(); // alternate way to write the above
249
- ///
250
- /// // SmallVec4 can hold up to 4 items without spilling onto the heap.
244
+ /// // The vector can hold up to 4 items without spilling onto the heap.
251
245
/// v.extend(0..4);
252
246
/// assert_eq!(v.len(), 4);
253
247
/// assert!(!v.spilled());
@@ -414,14 +408,6 @@ impl<A: Array> SmallVec<A> {
414
408
}
415
409
}
416
410
417
- /// Append elements from an iterator.
418
- ///
419
- /// This function is deprecated; it has been replaced by `Extend::extend`.
420
- #[ deprecated( note = "Use `extend` instead" ) ]
421
- pub fn push_all_move < V : IntoIterator < Item =A :: Item > > ( & mut self , other : V ) {
422
- self . extend ( other)
423
- }
424
-
425
411
/// Remove an item from the end of the vector and return it, or None if empty.
426
412
#[ inline]
427
413
pub fn pop ( & mut self ) -> Option < A :: Item > {
@@ -1110,36 +1096,6 @@ impl<'a, A: Array> IntoIterator for &'a mut SmallVec<A> {
1110
1096
}
1111
1097
}
1112
1098
1113
- // TODO: Remove these and its users.
1114
-
1115
- /// Deprecated alias to ease transition from an earlier version.
1116
- #[ deprecated]
1117
- pub type SmallVec1 < T > = SmallVec < [ T ; 1 ] > ;
1118
-
1119
- /// Deprecated alias to ease transition from an earlier version.
1120
- #[ deprecated]
1121
- pub type SmallVec2 < T > = SmallVec < [ T ; 2 ] > ;
1122
-
1123
- /// Deprecated alias to ease transition from an earlier version.
1124
- #[ deprecated]
1125
- pub type SmallVec4 < T > = SmallVec < [ T ; 4 ] > ;
1126
-
1127
- /// Deprecated alias to ease transition from an earlier version.
1128
- #[ deprecated]
1129
- pub type SmallVec8 < T > = SmallVec < [ T ; 8 ] > ;
1130
-
1131
- /// Deprecated alias to ease transition from an earlier version.
1132
- #[ deprecated]
1133
- pub type SmallVec16 < T > = SmallVec < [ T ; 16 ] > ;
1134
-
1135
- /// Deprecated alias to ease transition from an earlier version.
1136
- #[ deprecated]
1137
- pub type SmallVec24 < T > = SmallVec < [ T ; 24 ] > ;
1138
-
1139
- /// Deprecated alias to ease transition from an earlier version.
1140
- #[ deprecated]
1141
- pub type SmallVec32 < T > = SmallVec < [ T ; 32 ] > ;
1142
-
1143
1099
/// Types that can be used as the backing store for a SmallVec
1144
1100
pub unsafe trait Array {
1145
1101
/// The type of the array's elements.
0 commit comments