pub trait TranslatePk<P, Q>where
P: MiniscriptKey,
Q: MiniscriptKey,{
type Output;
// Required method
fn translate_pk<T, E>(&self, translator: &mut T) -> Result<Self::Output, 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§
Required Methods§
Sourcefn translate_pk<T, E>(&self, translator: &mut T) -> Result<Self::Output, E>where
T: Translator<P, Q, E>,
fn translate_pk<T, E>(&self, translator: &mut T) -> Result<Self::Output, 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.
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.