pub trait TranslatePk<P, Q>{
    type Output;

    // Required method
    fn translate_pk<T, E>(
        &self,
        translator: &mut T
    ) -> Result<Self::Output, TranslateErr<E>>
       where T: Translator<P, Q, E>;
}
Expand description

Converts a descriptor using abstract keys to one using specific keys. Uses translator t to do the actual translation function calls.

Required Associated Types§

source

type Output

The associated output type. This must be Self<Q>.

Required Methods§

source

fn translate_pk<T, E>( &self, translator: &mut T ) -> Result<Self::Output, TranslateErr<E>>
where T: Translator<P, Q, E>,

Translates a struct from one generic to another where the translations for Pk are provided by the given Translator.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<P, Q> TranslatePk<P, Q> for Descriptor<P>

source§

impl<P, Q> TranslatePk<P, Q> for Bare<P>

§

type Output = Bare<Q>

source§

impl<P, Q> TranslatePk<P, Q> for Pkh<P>

§

type Output = Pkh<Q>

source§

impl<P, Q> TranslatePk<P, Q> for Sh<P>

§

type Output = Sh<Q>

source§

impl<P, Q> TranslatePk<P, Q> for Tr<P>

§

type Output = Tr<Q>

source§

impl<P, Q> TranslatePk<P, Q> for Wpkh<P>

§

type Output = Wpkh<Q>

source§

impl<P, Q> TranslatePk<P, Q> for Wsh<P>

§

type Output = Wsh<Q>

source§

impl<Pk, Q, Ctx> TranslatePk<Pk, Q> for Miniscript<Pk, Ctx>

§

type Output = Miniscript<Q, Ctx>