Trait elements_miniscript::TranslateExt
source · pub trait TranslateExt<PExt, QExt>where
PExt: Extension,
QExt: Extension,{
type Output;
// Required method
fn translate_ext<T, E>(&self, translator: &mut T) -> Result<Self::Output, E>
where T: ExtTranslator<PExt, QExt, 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§
Required Methods§
sourcefn translate_ext<T, E>(&self, translator: &mut T) -> Result<Self::Output, E>where
T: ExtTranslator<PExt, QExt, E>,
fn translate_ext<T, E>(&self, translator: &mut T) -> Result<Self::Output, E>where T: ExtTranslator<PExt, QExt, E>,
Translates a struct from one generic to another where the translations
for Pk are provided by the given Translator.