Skip to main content

StructuresRegistrar

Trait StructuresRegistrar 

pub trait StructuresRegistrar {
    // Required method
    fn add_structure_type(&mut self, name: &str, ty: Arc<dyn StructureType>);
}
Expand description

Registrar operations for structures.

Required Methods§

fn add_structure_type(&mut self, name: &str, ty: Arc<dyn StructureType>)

Register structure type name with ty; mods reach it through register_structure_type.

On WebAssembly, worker calls run under the linked group’s store lock and call budget.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§