pub trait TryToCSL<T> {
    type ExtraInfo<'a>;

    // Required method
    fn try_to_csl_with(
        &self,
        extra_info: Self::ExtraInfo<'_>
    ) -> Result<T, TryFromPLAError>;
}
Expand description

Convert a plutus-ledger-api type to its cardano-serialization-lib counterpart try_to_csl_with accepts extra data where the PLA data itself is not enough

DO NOT IMPLEMENT THIS DIRECTLY. Implement TryFromPLA instead.

Required Associated Types§

Required Methods§

source

fn try_to_csl_with( &self, extra_info: Self::ExtraInfo<'_> ) -> Result<T, TryFromPLAError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U> TryToCSL<U> for T
where U: TryFromPLA<T>,

§

type ExtraInfo<'a> = <U as TryFromPLA<T>>::ExtraInfo<'a>