mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Iterate TemplateNodes
This commit is contained in:
parent
7ed472a462
commit
bf8931f869
1 changed files with 2 additions and 2 deletions
|
@ -1227,13 +1227,13 @@ impl<'a> NodeCursor<'a> {
|
|||
}
|
||||
|
||||
impl Iterator for NodeCursor<'_> {
|
||||
type Item = Self;
|
||||
type Item = TemplateNode;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
self.try_current_node()?;
|
||||
let item = self.clone();
|
||||
*self.position.last_mut()? += 1;
|
||||
Some(item)
|
||||
item.try_current_node()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue