pub struct ModuleBuilder<'a> { /* private fields */ }Expand description
Builder for creating IR modules
Implementations§
Source§impl<'a> ModuleBuilder<'a>
impl<'a> ModuleBuilder<'a>
Sourcepub fn add_method(
&mut self,
method_name: String,
function_id: FunctionId,
) -> &mut Self
pub fn add_method( &mut self, method_name: String, function_id: FunctionId, ) -> &mut Self
Add a method to the module
Sourcepub fn build(self) -> &'a mut ProgramBuilder
pub fn build(self) -> &'a mut ProgramBuilder
Build the module and add it to the program
Auto Trait Implementations§
impl<'a> Freeze for ModuleBuilder<'a>
impl<'a> RefUnwindSafe for ModuleBuilder<'a>
impl<'a> Send for ModuleBuilder<'a>
impl<'a> Sync for ModuleBuilder<'a>
impl<'a> Unpin for ModuleBuilder<'a>
impl<'a> UnsafeUnpin for ModuleBuilder<'a>
impl<'a> !UnwindSafe for ModuleBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more