diff options
author | 2024-04-25 23:19:39 +0200 | |
---|---|---|
committer | 2024-04-25 23:19:39 +0200 | |
commit | 2d01d55cbc62601c640f2e55d8a8ddb5d63de1af (patch) | |
tree | 6a2a9339b2bc536fc71d3def15446b667110ca19 /core/src/layout.rs | |
parent | 5ef593ce53e0ba53d51809f198a02743f87a6ccd (diff) | |
parent | 4fc342c97963a7a7e7983604b9399fccf017aa53 (diff) | |
download | iced-2d01d55cbc62601c640f2e55d8a8ddb5d63de1af.tar.gz iced-2d01d55cbc62601c640f2e55d8a8ddb5d63de1af.tar.bz2 iced-2d01d55cbc62601c640f2e55d8a8ddb5d63de1af.zip |
Merge pull request #2405 from iced-rs/feature/stack-widget
`Stack` widget
Diffstat (limited to 'core/src/layout.rs')
-rw-r--r-- | core/src/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/layout.rs b/core/src/layout.rs index 95720aba..98d05602 100644 --- a/core/src/layout.rs +++ b/core/src/layout.rs @@ -54,7 +54,7 @@ impl<'a> Layout<'a> { } /// Returns an iterator over the [`Layout`] of the children of a [`Node`]. - pub fn children(self) -> impl Iterator<Item = Layout<'a>> { + pub fn children(self) -> impl DoubleEndedIterator<Item = Layout<'a>> { self.node.children().iter().map(move |node| { Layout::with_offset( Vector::new(self.position.x, self.position.y), |