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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".