mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-18 12:25:35 -04:00
Implement DoubleEndedIterator for TinyVecIterator (#145)
This commit is contained in:
@@ -1190,6 +1190,19 @@ impl<A: Array> Iterator for TinyVecIterator<A> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<A: Array> DoubleEndedIterator for TinyVecIterator<A> {
|
||||
impl_mirrored! {
|
||||
type Mirror = TinyVecIterator;
|
||||
|
||||
#[inline]
|
||||
fn next_back(self: &mut Self) -> Option<Self::Item>;
|
||||
|
||||
#[cfg(feature = "rustc_1_40")]
|
||||
#[inline]
|
||||
fn nth_back(self: &mut Self, n: usize) -> Option<Self::Item>;
|
||||
}
|
||||
}
|
||||
|
||||
impl<A: Array> Debug for TinyVecIterator<A>
|
||||
where
|
||||
A::Item: Debug,
|
||||
|
||||
Reference in New Issue
Block a user