pub trait TryFromPLAWithDef<T> {
    // Required method
    fn try_from_pla(val: &T) -> Result<Self, TryFromPLAError>
       where Self: Sized;
}
Expand description

Convert a plutus-ledger-api type to its cardano-serialization-lib counterpart for cases where the csl data can be fully constructed from the pla data

DO NOT IMPLEMENT THIS DIRECTLY. Implement TryFromPLA instead.

Required Methods§

source

fn try_from_pla(val: &T) -> Result<Self, TryFromPLAError>
where Self: Sized,

Implementors§

source§

impl<'a, T, U> TryFromPLAWithDef<T> for U
where U: TryFromPLA<T, ExtraInfo<'a> = ()>,