diff --git a/core/src/layout.rs b/core/src/layout.rs index 98d056029f..f9bdd31089 100644 --- a/core/src/layout.rs +++ b/core/src/layout.rs @@ -54,7 +54,9 @@ impl<'a> Layout<'a> { } /// Returns an iterator over the [`Layout`] of the children of a [`Node`]. - pub fn children(self) -> impl DoubleEndedIterator> { + pub fn children( + self, + ) -> impl DoubleEndedIterator> + ExactSizeIterator { self.node.children().iter().map(move |node| { Layout::with_offset( Vector::new(self.position.x, self.position.y),