pub struct FunctionBuilderHandle { /* private fields */ }Expand description
Handle that chains function-building methods back to the model builder.
Implementations§
Source§impl FunctionBuilderHandle
impl FunctionBuilderHandle
pub fn param(self, name: &str, ty: ModelType) -> Self
pub fn op( self, op_name: &str, inputs: &[&str], result: &str, result_type: ModelType, ) -> Self
pub fn op_with_attrs( self, op_name: &str, inputs: &[&str], result: &str, result_type: ModelType, attrs: Vec<(&str, Attribute)>, ) -> Self
pub fn returns(self, name: &str) -> Self
pub fn dialect(self, d: &str) -> Self
Sourcepub fn done(self) -> ModelBuilder
pub fn done(self) -> ModelBuilder
Finish the function and return to the model builder.
Auto Trait Implementations§
impl Freeze for FunctionBuilderHandle
impl RefUnwindSafe for FunctionBuilderHandle
impl Send for FunctionBuilderHandle
impl Sync for FunctionBuilderHandle
impl Unpin for FunctionBuilderHandle
impl UnsafeUnpin for FunctionBuilderHandle
impl UnwindSafe for FunctionBuilderHandle
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