[][src]Struct wasmer_runtime_core::typed_func::DynamicFunc

pub struct DynamicFunc<'a> { /* fields omitted */ }

Represents a type-erased function provided by either the host or the WebAssembly program.

Implementations

impl<'a> DynamicFunc<'a>[src]

pub fn new<F>(signature: Arc<FuncSig>, func: F) -> Self where
    F: Fn(&mut Ctx, &[Value]) -> Vec<Value> + 'static, 
[src]

Creates a dynamic function that is polymorphic over its argument and return types.

Trait Implementations

impl<'a, Args, Rets, Inner> From<Func<'a, Args, Rets, Inner>> for DynamicFunc<'a> where
    Args: WasmTypeList,
    Rets: WasmTypeList,
    Inner: Kind + 'static, 
[src]

impl<'a> IsExport for DynamicFunc<'a>[src]

impl<'a> Send for DynamicFunc<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for DynamicFunc<'a>

impl<'a> !Sync for DynamicFunc<'a>

impl<'a> Unpin for DynamicFunc<'a>

impl<'a> !UnwindSafe for DynamicFunc<'a>

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> Same<T> for T

type Output = T

Should always be Self

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.