Trait sapio_miniscript::TranslatePk2 [−][src]
Variant of TranslatePk
where P’s hash is P, so the hashes
can be converted by reusing the key-conversion function
Provided methods
fn translate_pk2<Fpk: Fn(&P) -> Result<Q, E>, E>(
&self,
translatefpk: Fpk
) -> Result<Self::Output, E>
[src]
&self,
translatefpk: Fpk
) -> Result<Self::Output, E>
Translate a struct from one generic to another where the translation for Pk is provided by translatefpk
fn translate_pk2_infallible<Fpk: Fn(&P) -> Q>(
&self,
translatefpk: Fpk
) -> Self::Output
[src]
&self,
translatefpk: Fpk
) -> Self::Output
Translate a struct from one generic to another where the translation for Pk is provided by translatefpk