pub fn create_children(
        self,
        node_iter: impl IntoIterator<Item = impl IntoVNode<'a>>,
    ) -> Element<'a> {
        let mut nodes = bumpalo::collections::Vec::new_in(self.bump);

        for node in node_iter {
            nodes.push(node.into_vnode(self));
        }

        if nodes.is_empty() {
            Some(VNode::Placeholder(
                self.bump.alloc(VPlaceholder { id: empty_cell() }),
            ))
        } else {
            let children = nodes.into_bump_slice();

            Some(VNode::Fragment(self.bump.alloc(VFragment {
                children,
                key: None,
            })))
        }
    }
/// Create a new [`VNode`] from any iterator of children
Create a new [`VNode`] from any iterator of children
Create a new [ ` VNode ` ] from any iterator of children
pub fn create_children(
        self,
        node_iter: impl IntoIterator<Item = impl IntoVNode<'a>>,
    ) -> Element<'a> {
        let mut nodes = bumpalo::collections::Vec::new_in(self.bump);
        for node in node_iter {
            nodes.push(node.into_vnode(self));
        }
        if nodes.is_empty() {
            Some(VNode::Placeholder(
                self.bump.alloc(VPlaceholder { id: empty_cell() }),
            ))
        } else {
            let children = nodes.into_bump_slice();
            Some(VNode::Fragment(self.bump.alloc(VFragment {
                children,
                key: None,
            })))
        }
    }
pub fn create_children ( self , node_iter : impl IntoIterator < Item = impl IntoVNode < ' a > > , ) -> Element < ' a > { let mut nodes = bumpalo :: collections :: Vec :: new_in ( self . bump ) ; for node in node_iter { nodes . push ( node . into_vnode ( self ) ) ; } if nodes . is_empty ( ) { Some ( VNode :: Placeholder ( self . bump . alloc ( VPlaceholder { id : empty_cell ( ) } ) , ) ) } else { let children = nodes . into_bump_slice ( ) ; Some ( VNode :: Fragment ( self . bump . alloc ( VFragment { children , key : None , } ) ) ) } }
Create a new [`VNode`] from any iterator of children
Create a new [ ` VNode ` ] from any iterator of children
self
node_iter
impl IntoIterator<Item = impl IntoVNode<'a>>
self
node_iter
impl IntoIterator<Item = impl IntoVNode<'a>>