Trait TranslateExtParam

Source
pub trait TranslateExtParam<PArg, QArg>
where PArg: ExtParam, QArg: ExtParam,
{ type Output; // Required method fn translate_ext<T, E>(&self, translator: &mut T) -> Result<Self::Output, E> where T: ExtParamTranslator<PArg, QArg, E>; }
Expand description

Converts a descriptor using abstract extension parameters to one using concrete ones, or vice-versa

Required Associated Types§

Source

type Output

The associated output type.

Required Methods§

Source

fn translate_ext<T, E>(&self, translator: &mut T) -> Result<Self::Output, E>
where T: ExtParamTranslator<PArg, QArg, E>,

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<PArg, QArg> TranslateExtParam<PArg, QArg> for CovOps<PArg>
where PArg: ExtParam, QArg: ExtParam,

Source§

type Output = CovOps<QArg>

Source§

impl<PArg, QArg> TranslateExtParam<PArg, QArg> for Arith<PArg>
where PArg: ExtParam, QArg: ExtParam,

Source§

type Output = Arith<QArg>

Source§

impl<PArg, QArg> TranslateExtParam<PArg, QArg> for CheckSigFromStack<PArg>
where PArg: ExtParam, QArg: ExtParam,

Source§

impl<PArg, QArg> TranslateExtParam<PArg, QArg> for Expr<PArg>
where PArg: ExtParam, QArg: ExtParam,

Source§

type Output = Expr<QArg>