[][src]Struct holochain_wasmer_host::prelude::types::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.

Implementations

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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Parameter types.

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[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

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

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: for<'de> 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> Pointable for T

type Init = T

The type for initializers.

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.