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

    // Required method
    fn try_from_csl_with(
        value: &T,
        extra_info: Self::ExtraInfo<'_>
    ) -> Result<Self, TryFromCSLError>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

source

fn try_from_csl_with( value: &T, extra_info: Self::ExtraInfo<'_> ) -> Result<Self, TryFromCSLError>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryFromCSLWith<(&Option<BigNum>, &Option<BigNum>)> for POSIXTimeRange

§

type ExtraInfo<'a> = (&'a Vec<EraSummary>, &'a DateTime<Utc>)

source§

fn try_from_csl_with( (start, ttl): &(&Option<BigNum>, &Option<BigNum>), (era_summaries, sys_start): Self::ExtraInfo<'_> ) -> Result<Self, TryFromCSLError>

source§

impl TryFromCSLWith<Transaction> for TransactionInfo

source§

fn try_from_csl_with( tx: &Transaction, extra_info: Self::ExtraInfo<'_> ) -> Result<Self, TryFromCSLError>

§

type ExtraInfo<'a> = (&'a BTreeMap<TransactionInput, TransactionOutput>, &'a Vec<EraSummary>, &'a DateTime<Utc>)

source§

impl TryFromCSLWith<TransactionInputs> for Vec<TxInInfo>

§

type ExtraInfo<'a> = &'a BTreeMap<TransactionInput, TransactionOutput>

source§

fn try_from_csl_with( value: &TransactionInputs, available_utxos: Self::ExtraInfo<'_> ) -> Result<Self, TryFromCSLError>

Implementors§