pub fn as_value(&self) -> &P<Value> {
        match self.v {
            TreeNode_::Value(ref val) => val,
            TreeNode_::Instruction(ref inst) => {
                let vals = inst.value.as_ref().unwrap();
                if vals.len() != 1 {
                    panic!(
                        "we expect an inst with 1 value, but found multiple or zero \
                         (it should not be here - folded as a child)"
                    );
                }
                &vals[0]
            }
        }
    }
/// returns the value from the TreeNode
/// * if this is a Instruction TreeNode, returns its first result value
/// * if this is a value, returns a clone of it
returns the value from the TreeNode
if this is a Instruction TreeNode, returns its first result value
if this is a value, returns a clone of it
returns the value from the TreeNode if this is a Instruction TreeNode returns its first result value if this is a value returns a clone of it
pub fn as_value(&self) -> &P<Value> {
        match self.v {
            TreeNode_::Value(ref val) => val,
            TreeNode_::Instruction(ref inst) => {
                let vals = inst.value.as_ref().unwrap();
                if vals.len() != 1 {
                    panic!(
                        "we expect an inst with 1 value, but found multiple or zero \
                         (it should not be here - folded as a child)"
                    );
                }
                &vals[0]
            }
        }
    }
pub fn as_value ( & self ) -> & P < Value > { match self . v { TreeNode_ :: Value ( ref val ) => val , TreeNode_ :: Instruction ( ref inst ) => { let vals = inst . value . as_ref ( ) . unwrap ( ) ; if vals . len ( ) != 1 { panic ! ( " \
 " ) ; } & vals [ 0 ] } } }
returns the value from the TreeNode
 if this is a Instruction TreeNode, returns its first result value
 if this is a value, returns a clone of it
returns the value from the TreeNode if this is a Instruction TreeNode returns its first result value if this is a value returns a clone of it
&self
&self