pub trait Package {
fn init(module: &mut Module);
fn as_shared_module(&self) -> Shared<Module>;
}
Expand description
Trait that all packages must implement.
Required Methods
Initialize the package.
Functions should be registered into module
here.
Get a reference to a shared module from this package.