Skip to main content

Module

Trait Module 

Source
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§

Source

fn new(env: Rc<ContractEnv>) -> Self

Creates a new instance of the module with the given contract environment.

Source

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".

Implementors§