[][src]Struct wasmer::NativeFunc

pub struct NativeFunc<'a, Args = (), Rets = ()> { /* fields omitted */ }

A WebAssembly function that can be called natively (using the Native ABI).

Implementations

impl<'a, Rets> NativeFunc<'a, (), Rets> where
    Rets: WasmTypeList
[src]

pub fn call(&self) -> Result<Rets, RuntimeError>[src]

Call the typed func and return results.

impl<'a, A1, Rets> NativeFunc<'a, A1, Rets> where
    A1: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(&self, A1: A1) -> Result<Rets, RuntimeError>[src]

Call the typed func and return results.

impl<'a, A1, A2, Rets> NativeFunc<'a, (A1, A2), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(&self, A1: A1, A2: A2) -> Result<Rets, RuntimeError>[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, Rets> NativeFunc<'a, (A1, A2, A3), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(&self, A1: A1, A2: A2, A3: A3) -> Result<Rets, RuntimeError>[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, Rets> NativeFunc<'a, (A1, A2, A3, A4), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(&self, A1: A1, A2: A2, A3: A3, A4: A4) -> Result<Rets, RuntimeError>[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    A15: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14,
    A15: A15
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    A15: FromToNativeWasmType,
    A16: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14,
    A15: A15,
    A16: A16
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    A15: FromToNativeWasmType,
    A16: FromToNativeWasmType,
    A17: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14,
    A15: A15,
    A16: A16,
    A17: A17
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    A15: FromToNativeWasmType,
    A16: FromToNativeWasmType,
    A17: FromToNativeWasmType,
    A18: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14,
    A15: A15,
    A16: A16,
    A17: A17,
    A18: A18
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    A15: FromToNativeWasmType,
    A16: FromToNativeWasmType,
    A17: FromToNativeWasmType,
    A18: FromToNativeWasmType,
    A19: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14,
    A15: A15,
    A16: A16,
    A17: A17,
    A18: A18,
    A19: A19
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

impl<'a, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, Rets> NativeFunc<'a, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20), Rets> where
    A1: FromToNativeWasmType,
    A2: FromToNativeWasmType,
    A3: FromToNativeWasmType,
    A4: FromToNativeWasmType,
    A5: FromToNativeWasmType,
    A6: FromToNativeWasmType,
    A7: FromToNativeWasmType,
    A8: FromToNativeWasmType,
    A9: FromToNativeWasmType,
    A10: FromToNativeWasmType,
    A11: FromToNativeWasmType,
    A12: FromToNativeWasmType,
    A13: FromToNativeWasmType,
    A14: FromToNativeWasmType,
    A15: FromToNativeWasmType,
    A16: FromToNativeWasmType,
    A17: FromToNativeWasmType,
    A18: FromToNativeWasmType,
    A19: FromToNativeWasmType,
    A20: FromToNativeWasmType,
    Rets: WasmTypeList
[src]

pub fn call(
    &self,
    A1: A1,
    A2: A2,
    A3: A3,
    A4: A4,
    A5: A5,
    A6: A6,
    A7: A7,
    A8: A8,
    A9: A9,
    A10: A10,
    A11: A11,
    A12: A12,
    A13: A13,
    A14: A14,
    A15: A15,
    A16: A16,
    A17: A17,
    A18: A18,
    A19: A19,
    A20: A20
) -> Result<Rets, RuntimeError>
[src]

Call the typed func and return results.

Trait Implementations

impl<'a, Args, Rets, '_> From<&'_ NativeFunc<'a, Args, Rets>> for ExportFunction where
    Args: WasmTypeList,
    Rets: WasmTypeList
[src]

impl<'a, Args, Rets> From<NativeFunc<'a, Args, Rets>> for Function where
    Args: WasmTypeList,
    Rets: WasmTypeList
[src]

impl<'a, Args, Rets> Send for NativeFunc<'a, Args, Rets>[src]

Auto Trait Implementations

impl<'a, Args = (), Rets = ()> !RefUnwindSafe for NativeFunc<'a, Args, Rets>

impl<'a, Args = (), Rets = ()> !Sync for NativeFunc<'a, Args, Rets>

impl<'a, Args, Rets> Unpin for NativeFunc<'a, Args, Rets> where
    Args: Unpin,
    Rets: Unpin

impl<'a, Args = (), Rets = ()> !UnwindSafe for NativeFunc<'a, Args, Rets>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,