pub(crate) fn unchecked_first_node(&self) -> Node {
        match self {
            VNode::VTag(vtag) => vtag
                .reference()
                .expect("VTag is not mounted")
                .clone()
                .into(),
            VNode::VText(vtext) => {
                let text_node = vtext.reference.as_ref().expect("VText is not mounted");
                text_node.clone().into()
            }
            VNode::VComp(vcomp) => vcomp.node_ref.get().unwrap_or_else(|| {
                #[cfg(not(debug_assertions))]
                panic!("no node_ref; VComp should be mounted");

                #[cfg(debug_assertions)]
                panic!(
                    "no node_ref; VComp should be mounted after: {:?}",
                    crate::virtual_dom::vcomp::get_event_log(vcomp.id),
                );
            }),
            VNode::VList(vlist) => vlist
                .get(0)
                .expect("VList is not mounted")
                .unchecked_first_node(),
            VNode::VRef(node) => node.clone(),
        }
    }
/// Returns the first DOM node that is used to designate the position of the virtual DOM node.
Returns the first DOM node that is used to designate the position of the virtual DOM node.
Returns the first DOM node that is used to designate the position of the virtual DOM node .
pub(crate) fn unchecked_first_node(&self) -> Node {
        match self {
            VNode::VTag(vtag) => vtag
                .reference()
                .expect("VTag is not mounted")
                .clone()
                .into(),
            VNode::VText(vtext) => {
                let text_node = vtext.reference.as_ref().expect("VText is not mounted");
                text_node.clone().into()
            }
            VNode::VComp(vcomp) => vcomp.node_ref.get().unwrap_or_else(|| {
                #[cfg(not(debug_assertions))]
                panic!("no node_ref; VComp should be mounted");
                #[cfg(debug_assertions)]
                panic!(
                    "no node_ref; VComp should be mounted after: {:?}",
                    crate::virtual_dom::vcomp::get_event_log(vcomp.id),
                );
            }),
            VNode::VList(vlist) => vlist
                .get(0)
                .expect("VList is not mounted")
                .unchecked_first_node(),
            VNode::VRef(node) => node.clone(),
        }
    }
pub ( crate ) fn unchecked_first_node ( & self ) -> Node { match self { VNode :: VTag ( vtag ) => vtag . reference ( ) . expect ( " " ) . clone ( ) . into ( ) , VNode :: VText ( vtext ) => { let text_node = vtext . reference . as_ref ( ) . expect ( " " ) ; text_node . clone ( ) . into ( ) } VNode :: VComp ( vcomp ) => vcomp . node_ref . get ( ) . unwrap_or_else ( | | { # [ cfg ( not ( debug_assertions ) ) ] panic ! ( " " ) ; # [ cfg ( debug_assertions ) ] panic ! ( " " crate virtual_dom vcomp get_event_log ( vcomp id ) ) ; } ) , VNode :: VList ( vlist ) => vlist . get ( 0 ) . expect ( " " ) . unchecked_first_node ( ) , VNode :: VRef ( node ) => node . clone ( ) , } }
Returns the first DOM node that is used to designate the position of the virtual DOM node.
Returns the first DOM node that is used to designate the position of the virtual DOM node .
&self
&self