fn kind(&self) -> PyResult<String> {
        use Node::*;
        match self.node {
            Literal(_) => Ok("Literal".into()),
            PreludeType(_) => Ok("PreludeType".into()),
            Rule(_) => Ok("Rule".into()),
            Choice(_) => Ok("Choice".into()),
            Map(_) => Ok("Map".into()),
            Array(_) => Ok("Array".into()),
            Group(_) => Ok("Group".into()),
            KeyValue(_) => Ok("KeyValue".into()),
            Occur(_) => Ok("Occur".into()),
            Unwrap(_) => Ok("Unwrap".into()),
            Range(_) => Ok("Range".into()),
        }
    }
// Return a constant string as a way of identifying which variant.
Return a constant string as a way of identifying which variant.
Return a constant string as a way of identifying which variant .
fn kind(&self) -> PyResult<String> {
        use Node::*;
        match self.node {
            Literal(_) => Ok("Literal".into()),
            PreludeType(_) => Ok("PreludeType".into()),
            Rule(_) => Ok("Rule".into()),
            Choice(_) => Ok("Choice".into()),
            Map(_) => Ok("Map".into()),
            Array(_) => Ok("Array".into()),
            Group(_) => Ok("Group".into()),
            KeyValue(_) => Ok("KeyValue".into()),
            Occur(_) => Ok("Occur".into()),
            Unwrap(_) => Ok("Unwrap".into()),
            Range(_) => Ok("Range".into()),
        }
    }
fn kind ( & self ) -> PyResult < String > { use Node :: * ; match self . node { Literal ( _ ) => Ok ( " " . into ( ) ) , PreludeType ( _ ) => Ok ( " " . into ( ) ) , Rule ( _ ) => Ok ( " " . into ( ) ) , Choice ( _ ) => Ok ( " " . into ( ) ) , Map ( _ ) => Ok ( " " . into ( ) ) , Array ( _ ) => Ok ( " " . into ( ) ) , Group ( _ ) => Ok ( " " . into ( ) ) , KeyValue ( _ ) => Ok ( " " . into ( ) ) , Occur ( _ ) => Ok ( " " . into ( ) ) , Unwrap ( _ ) => Ok ( " " . into ( ) ) , Range ( _ ) => Ok ( " " . into ( ) ) , } }
Return a constant string as a way of identifying which variant.
Return a constant string as a way of identifying which variant .
&self
&self