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.
2 parents c9c8195 + da9744d commit 02f2df1Copy full SHA for 02f2df1
src/object.rs
@@ -588,6 +588,12 @@ impl<'a> DoubleEndedIterator for Iter<'a> {
588
}
589
590
591
+impl<'a> ExactSizeIterator for Iter<'a> {
592
+ fn len(&self) -> usize {
593
+ self.inner.len()
594
+ }
595
+}
596
+
597
pub struct IterMut<'a> {
598
inner: slice::IterMut<'a, Node>
599
@@ -617,6 +623,12 @@ impl<'a> DoubleEndedIterator for IterMut<'a> {
617
623
618
624
619
625
626
+impl<'a> ExactSizeIterator for IterMut<'a> {
627
628
629
630
631
620
632
/// Implements indexing by `&str` to easily access object members:
621
633
///
622
634
/// ## Example
0 commit comments