File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,22 @@ impl<T: SequenceAlloc> Drop for Sequence<T> {
150150impl < T : SequenceAlloc + Eq > Eq for Sequence < T > { }
151151
152152impl < T : SequenceAlloc > Extend < T > for Sequence < T > {
153+ /// Extends the sequence by appending elements from an iterator.
154+ ///
155+ /// # Arguments
156+ ///
157+ /// * `&mut self` - The mutable sequence to be extended.
158+ /// * `iter` - The iterator containing the elements to be appended.
159+ ///
160+ /// # Panics
161+ ///
162+ /// This function does not panic.
163+ ///
164+ /// # Safety
165+ ///
166+ /// This function is safe to call, but it may reallocate the underlying memory
167+ /// of the sequence, which could potentially invalidate any existing references
168+ /// or pointers to the sequence's elements.
153169 fn extend < I > ( & mut self , iter : I )
154170 where
155171 I : IntoIterator < Item = T > ,
You can’t perform that action at this time.
0 commit comments