plutus_ledger_api::plutus_data

Function parse_fixed_len_constr_fields

Source
pub fn parse_fixed_len_constr_fields<const LEN: usize>(
    v: &[PlutusData],
) -> Result<&[PlutusData; LEN], PlutusDataError>
Expand description

Given a vector of PlutusData, parse it as an array whose length is known at compile time.

This function is used by the derive macro.