pub fn string(&self, node: NodeId) -> Option<&Rc<str>> {
      if let Some(NodeData::String(s)) = self.data(node) {
         return Some(s);
      }
      None
   }
/// Returns the string data of a node, or `None` if the node carries a different type of data.
Returns the string data of a node, or `None` if the node carries a different type of data.
Returns the string data of a node or ` None ` if the node carries a different type of data .
pub fn string(&self, node: NodeId) -> Option<&Rc<str>> {
      if let Some(NodeData::String(s)) = self.data(node) {
         return Some(s);
      }
      None
   }
pub fn string ( & self , node : NodeId ) -> Option < & Rc < str > > { if let Some ( NodeData :: String ( s ) ) = self . data ( node ) { return Some ( s ) ; } None }
Returns the string data of a node, or `None` if the node carries a different type of data.
Returns the string data of a node or ` None ` if the node carries a different type of data .
&self
node
NodeId