pub struct FunctionRef {
pub func_addr: usize,
}
Fields§
§func_addr: usize
Implementations§
Source§impl FunctionRef
impl FunctionRef
pub fn new_from_name( module_name: &str, function_name: &str, store: &Store<'_>, ) -> CustomResult<Self>
pub fn invoke<H: HookSet + Debug, Param: InteropValueList, Returns: InteropValueList>( &self, runtime: &mut RuntimeInstance<'_, H>, params: Param, ) -> Result<Returns, RuntimeError>
pub fn invoke_dynamic<H: HookSet + Debug>( &self, runtime: &mut RuntimeInstance<'_, H>, params: Vec<Value>, ret_types: &[ValType], ) -> Result<Vec<Value>, RuntimeError>
Auto Trait Implementations§
impl Freeze for FunctionRef
impl RefUnwindSafe for FunctionRef
impl Send for FunctionRef
impl Sync for FunctionRef
impl Unpin for FunctionRef
impl UnwindSafe for FunctionRef
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