pub trait ToTypeRegistry: Sealed {
// Required method
fn to_type_registry(&self) -> Result<TypeRegistry, ParseError>;
}Expand description
This is used with the type_registry_from_metadata helper function to extract types from the
metadata. It is not intended to be implemented on anything else.
Required Methods§
Sourcefn to_type_registry(&self) -> Result<TypeRegistry, ParseError>
fn to_type_registry(&self) -> Result<TypeRegistry, ParseError>
Return a type registry.