Trait gear_program::metadata::registry::LocalRegistry
source · [−]pub trait LocalRegistry: Sized + Clone {
fn from_hex(hex: &str) -> Result<Self>;
fn derive_id(&self, id: u32) -> Result<LocalType<'_, PortableForm>>;
fn derive_name(&self, ident: &str) -> Result<LocalType<'_, PortableForm>>;
}Expand description
Local type registry
Required Methods
sourcefn derive_name(&self, ident: &str) -> Result<LocalType<'_, PortableForm>>
fn derive_name(&self, ident: &str) -> Result<LocalType<'_, PortableForm>>
Get type from identity name
TODO
Adding a indexer to register types for re-using, currently we don’t have this requirements