plutus_ledger_api::csl::csl_to_pla

Trait TryFromCSL

Source
pub trait TryFromCSL<T> {
    // Required method
    fn try_from_csl(value: &T) -> Result<Self, TryFromCSLError>
       where Self: Sized;
}
Expand description

Convert a cardano-serialization-lib type to its plutus-ledger-api counterpart

Required Methods§

Source

fn try_from_csl(value: &T) -> Result<Self, TryFromCSLError>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl TryFromCSL<BigInt> for BigInt

Source§

fn try_from_csl(value: &BigInt) -> Result<Self, TryFromCSLError>

Source§

impl TryFromCSL<PlutusList> for Vec<PlutusData>

Source§

fn try_from_csl(value: &PlutusList) -> Result<Self, TryFromCSLError>

Source§

impl TryFromCSL<PlutusMap> for Vec<(PlutusData, PlutusData)>

Source§

fn try_from_csl(c_map: &PlutusMap) -> Result<Self, TryFromCSLError>

Source§

impl TryFromCSL<TransactionOutputs> for Vec<TransactionOutput>

Source§

fn try_from_csl(value: &TransactionOutputs) -> Result<Self, TryFromCSLError>

Implementors§

Source§

impl TryFromCSL<Address> for Address

Source§

impl TryFromCSL<OutputDatum> for OutputDatum

Source§

impl TryFromCSL<PlutusData> for PlutusData

Source§

impl TryFromCSL<TransactionOutput> for TransactionOutput