pub trait Module {
// Required methods
fn new(env: Rc<ContractEnv>) -> Self;
fn env(&self) -> Rc<ContractEnv>;
}Expand description
Represents a module in the Odra system.
Required Methods§
sourcefn new(env: Rc<ContractEnv>) -> Self
fn new(env: Rc<ContractEnv>) -> Self
Creates a new instance of the module with the given contract environment.
sourcefn env(&self) -> Rc<ContractEnv>
fn env(&self) -> Rc<ContractEnv>
Returns the contract environment associated with the module.
Object Safety§
This trait is not object safe.