pub struct ModelBuilder { /* private fields */ }Expand description
Main model builder — constructs a complete LIFT module.
Implementations§
Source§impl ModelBuilder
impl ModelBuilder
Sourcepub fn function(self, name: &str) -> FunctionBuilderHandle
pub fn function(self, name: &str) -> FunctionBuilderHandle
Add a function definition.
Sourcepub fn build_context(&self) -> Context
pub fn build_context(&self) -> Context
Build the model into a LIFT Context and return it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelBuilder
impl RefUnwindSafe for ModelBuilder
impl Send for ModelBuilder
impl Sync for ModelBuilder
impl Unpin for ModelBuilder
impl UnsafeUnpin for ModelBuilder
impl UnwindSafe for ModelBuilder
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