diff --git a/src/tinyvec.rs b/src/tinyvec.rs index 32519c7..4ef9aeb 100644 --- a/src/tinyvec.rs +++ b/src/tinyvec.rs @@ -1190,6 +1190,19 @@ impl Iterator for TinyVecIterator { } } +impl DoubleEndedIterator for TinyVecIterator { + impl_mirrored! { + type Mirror = TinyVecIterator; + + #[inline] + fn next_back(self: &mut Self) -> Option; + + #[cfg(feature = "rustc_1_40")] + #[inline] + fn nth_back(self: &mut Self, n: usize) -> Option; + } +} + impl Debug for TinyVecIterator where A::Item: Debug,