pub trait TryToCSLWithDef<T>: TryToCSL<T> {
    // Required method
    fn try_to_csl(&self) -> Result<T, TryFromPLAError>;
}
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§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U> TryToCSLWithDef<U> for T
where U: TryFromPLAWithDef<T> + TryFromPLA<T>,