fn kv(&self) -> PyResult<(IVTNode, IVTNode)> {
        if let Node::KeyValue(kv) = &self.node {
            let key = IVTNode::from((*kv.key).clone());
            let value = IVTNode::from((*kv.value).clone());
            // FIXME: allow cut?
            Ok((key, value))
        } else {
            Err(PyErr::new::<AttributeError, _>(()))
        }
    }
// For KeyValue nodes, return the key/value pair.
For KeyValue nodes, return the key/value pair.
For KeyValue nodes return the key / value pair .
fn kv(&self) -> PyResult<(IVTNode, IVTNode)> {
        if let Node::KeyValue(kv) = &self.node {
            let key = IVTNode::from((*kv.key).clone());
            let value = IVTNode::from((*kv.value).clone());
            // FIXME: allow cut?
            Ok((key, value))
        } else {
            Err(PyErr::new::<AttributeError, _>(()))
        }
    }
fn kv ( & self ) -> PyResult < ( IVTNode , IVTNode ) > { if let Node :: KeyValue ( kv ) = & self . node { let key = IVTNode :: from ( ( * kv . key ) . clone ( ) ) ; let value = IVTNode :: from ( ( * kv . value ) . clone ( ) ) ; // FIXME: allow cut? Ok ( ( key , value ) ) } else { Err ( PyErr :: new :: < AttributeError , _ > ( ( ) ) ) } }
For KeyValue nodes, return the key/value pair.
For KeyValue nodes return the key / value pair .
&self
&self