pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new() -> Self
pub fn with_name(&mut self, n: &str)
pub fn with_inputs(&mut self, n: Vec<DataType>)
pub fn with_output(&mut self, n: DataType)
pub fn with_local(&mut self, n: DataType)
pub fn with_instructions(&mut self, n: Vec<WebAssembly>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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