/// Get the VNode's "key" used in the keyed diffing algorithm.
Get the VNode's "key" used in the keyed diffing algorithm.
Get the VNode ' s " key " used in the keyed diffing algorithm .
pub fn key(&self) -> Option<&'src str> {
        match &self {
            VNode::Element(el) => el.key,
            VNode::Component(c) => c.key,
            VNode::Fragment(f) => f.key,
            VNode::Text(_t) => None,
            VNode::Placeholder(_f) => None,
        }
    }
pub fn key ( & self ) -> Option < & ' src str > { match & self { VNode :: Element ( el ) => el . key , VNode :: Component ( c ) => c . key , VNode :: Fragment ( f ) => f . key , VNode :: Text ( _t ) => None , VNode :: Placeholder ( _f ) => None , } }
Get the VNode's "key" used in the keyed diffing algorithm.
Get the VNode ' s " key " used in the keyed diffing algorithm .
&self