pub fn to_output(self) -> Result<Output, VMError> {
        match self {
            Data::Opaque(data) => SliceReader::parse(&data, |r| Output::decode(r)),
            Data::Output(i) => Ok(*i),
            _ => Err(VMError::TypeNotOutput),
        }
    }
/// Downcast the data item to an `Output` type.
Downcast the data item to an `Output` type.
Downcast the data item to an ` Output ` type .
pub fn to_output(self) -> Result<Output, VMError> {
        match self {
            Data::Opaque(data) => SliceReader::parse(&data, |r| Output::decode(r)),
            Data::Output(i) => Ok(*i),
            _ => Err(VMError::TypeNotOutput),
        }
    }
pub fn to_output ( self ) -> Result < Output , VMError > { match self { Data :: Opaque ( data ) => SliceReader :: parse ( & data , | r | Output :: decode ( r ) ) , Data :: Output ( i ) => Ok ( * i ) , _ => Err ( VMError :: TypeNotOutput ) , } }
Downcast the data item to an `Output` type.
Downcast the data item to an ` Output ` type .
self
self