We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562568b commit cbe3620Copy full SHA for cbe3620
lib.rs
@@ -865,6 +865,8 @@ impl<A: Array> SmallVec<A> {
865
866
/// Insert multiple elements at position `index`, shifting all following elements toward the
867
/// back.
868
+ ///
869
+ /// Note: when the iterator panics, this can leak memory.
870
pub fn insert_many<I: IntoIterator<Item = A::Item>>(&mut self, index: usize, iterable: I) {
871
let iter = iterable.into_iter();
872
if index == self.len() {
0 commit comments