mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-19 14:23:33 -04:00
This commit is contained in:
+2
-1
@@ -808,6 +808,7 @@ impl<'p, A: Array> Iterator for ArrayVecDrain<'p, A> {
|
||||
}
|
||||
}
|
||||
}
|
||||
impl<'p, A: Array> FusedIterator for ArrayVecDrain<'p, A> { }
|
||||
impl<'p, A: Array> Drop for ArrayVecDrain<'p, A> {
|
||||
#[inline]
|
||||
fn drop(&mut self) {
|
||||
@@ -901,7 +902,7 @@ impl<A: Array> ArrayVecIterator<A> {
|
||||
&self.data.as_slice()[self.base..self.len]
|
||||
}
|
||||
}
|
||||
|
||||
impl<A: Array> FusedIterator for ArrayVecIterator<A> { }
|
||||
impl<A: Array> Iterator for ArrayVecIterator<A> {
|
||||
type Item = A::Item;
|
||||
#[inline]
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ use core::{
|
||||
UpperExp, UpperHex,
|
||||
},
|
||||
hash::{Hash, Hasher},
|
||||
iter::{Extend, FromIterator, IntoIterator, Iterator},
|
||||
iter::{Extend, FromIterator, FusedIterator, IntoIterator, Iterator},
|
||||
mem::{needs_drop, replace},
|
||||
ops::{Deref, DerefMut, Index, IndexMut, RangeBounds},
|
||||
slice::SliceIndex,
|
||||
|
||||
+2
-1
@@ -639,6 +639,7 @@ pub struct TinyVecDrain<'p, A: Array> {
|
||||
target_index: usize,
|
||||
target_count: usize,
|
||||
}
|
||||
impl<'p, A: Array> FusedIterator for TinyVecDrain<'p, A> { }
|
||||
impl<'p, A: Array> Iterator for TinyVecDrain<'p, A> {
|
||||
type Item = A::Item;
|
||||
#[inline]
|
||||
@@ -770,7 +771,7 @@ impl<A: Array> TinyVecIterator<A> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'p, A: Array> FusedIterator for TinyVecIterator<'p, A> { }
|
||||
impl<A: Array> Iterator for TinyVecIterator<A> {
|
||||
type Item = A::Item;
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user