pub fn with_type_registry<T>(reg: WireTypeRegistry, f: impl FnOnce() -> T) -> TExpand description
Install a shared type registry for the duration of f (consulted by BOTH encode and
decode). Restores the previous registry on return or panic.
pub fn with_type_registry<T>(reg: WireTypeRegistry, f: impl FnOnce() -> T) -> TInstall a shared type registry for the duration of f (consulted by BOTH encode and
decode). Restores the previous registry on return or panic.