WIP - Next: implement Element derive macro

This commit is contained in:
Nathan Sobo
2023-09-20 22:26:46 -06:00
parent 6d2b27689d
commit dfeb702544
21 changed files with 980 additions and 119 deletions
+9
View File
@@ -32,6 +32,15 @@ pub trait ParentElement<S> {
self.children_mut().push(child.into_any());
self
}
fn children(mut self, iter: impl IntoIterator<Item = impl IntoAnyElement<S>>) -> Self
where
Self: Sized,
{
self.children_mut()
.extend(iter.into_iter().map(|item| item.into_any()));
self
}
}
trait ElementObject<S> {