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