pub fn build(self) -> Module {
        let module = ModulePayload {
            name: self.context.get_name(self.name),
            functions: Vec::new(),
            globals: Vec::new(),
            named_structs: Vec::new(),
        };

        Module(self.context.modules.insert(module))
    }
/// Finalize and build the module.
///
/// # Examples
///
/// ```
/// # use yair::*;
/// # let mut context = Context::new();
/// # let module_builder = context.create_module();
/// let module = module_builder.build();
/// ```
Finalize and build the module.
Finalize and build the module .
pub fn build(self) -> Module {
        let module = ModulePayload {
            name: self.context.get_name(self.name),
            functions: Vec::new(),
            globals: Vec::new(),
            named_structs: Vec::new(),
        };
        Module(self.context.modules.insert(module))
    }
pub fn build ( self ) -> Module { let module = ModulePayload { name : self . context . get_name ( self . name ) , functions : Vec :: new ( ) , globals : Vec :: new ( ) , named_structs : Vec :: new ( ) , } ; Module ( self . context . modules . insert ( module ) ) }
Finalize and build the module.
Finalize and build the module .
self
self
examples
None
use yair::*;
None
let mut context = context::new();
None
let module_builder = context.create_module();
let module = module_builder.build();
```
let module = module_builder . build () ; ` ` `