Trait rhai::packages::Package[][src]

pub trait Package {
    fn init(lib: &mut Module);
fn as_shared_module(&self) -> Shared<Module>; fn get(&self) -> Shared<Module> { ... } }
Expand description

Trait that all packages must implement.

Required methods

fn init(lib: &mut Module)[src]

Register all the functions in a package into a store.

fn as_shared_module(&self) -> Shared<Module>[src]

Retrieve the generic package library from this package.

Provided methods

fn get(&self) -> Shared<Module>[src]

👎 Deprecated since 0.19.9:

use as_shared_module instead

Retrieve the generic package library from this package. This method is deprecated and will be removed in the future. Use as_shared_module instead.

Implementors