plutus_ledger_api::plutus_data

Function parse_constr

Source
pub fn parse_constr(
    data: &PlutusData,
) -> Result<(u32, &Vec<PlutusData>), PlutusDataError>
Expand description

Given a PlutusData, parse it as PlutusData::Constr and its tag as u32. Return the u32 tag and fields.

This function is used by the derive macro.