[][src]Struct wasmer_runtime::wasm::FuncSig

pub struct FuncSig { /* fields omitted */ }

The signature of a function that is either implemented in a wasm module or exposed to wasm by the host.

Methods

impl FuncSig[src]

pub fn new<Params, Returns>(params: Params, returns: Returns) -> FuncSig where
    Params: Into<Cow<'static, [Type]>>,
    Returns: Into<Cow<'static, [Type]>>, 
[src]

Creates a new function signatures with the given parameter and return types.

pub fn params(&self) -> &[Type][src]

Parameter types.

pub fn returns(&self) -> &[Type][src]

Return types.

pub fn check_param_value_types(&self, params: &[Value]) -> bool[src]

Returns true if parameter types match the function signature.

Trait Implementations

impl Clone for FuncSig[src]

impl Debug for FuncSig[src]

impl<'de> Deserialize<'de> for FuncSig[src]

impl Display for FuncSig[src]

impl Eq for FuncSig[src]

impl From<Converter<Signature>> for FuncSig[src]

impl Hash for FuncSig[src]

impl PartialEq<FuncSig> for FuncSig[src]

impl Serialize for FuncSig[src]

impl StructuralEq for FuncSig[src]

impl StructuralPartialEq for FuncSig[src]

Auto Trait Implementations

impl RefUnwindSafe for FuncSig

impl Send for FuncSig

impl Sync for FuncSig

impl Unpin for FuncSig

impl UnwindSafe for FuncSig

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.