plutus_ledger_api::plutus_data

Function case_plutus_data

Source
pub fn case_plutus_data<'a, T>(
    ctor_case: impl FnOnce(&'a BigInt) -> Box<dyn FnOnce(&'a Vec<PlutusData>) -> T + 'a>,
    list_case: impl FnOnce(&'a Vec<PlutusData>) -> T,
    int_case: impl FnOnce(&'a BigInt) -> T,
    other_case: impl FnOnce(&'a PlutusData) -> T,
    pd: &'a PlutusData,
) -> T
Expand description

Deserialise a Plutus data using parsers for each variant