Struct sp_wasm_interface::Signature[][src]

pub struct Signature {
    pub args: Cow<'static, [ValueType]>,
    pub return_value: Option<ValueType>,

The Signature of a function


args: Cow<'static, [ValueType]>

The arguments of a function.

return_value: Option<ValueType>

The optional return value of a function.


impl Signature[src]

pub fn new<T: Into<Cow<'static, [ValueType]>>>(
    args: T,
    return_value: Option<ValueType>
) -> Self

Create a new instance of Signature.

pub fn new_with_args<T: Into<Cow<'static, [ValueType]>>>(args: T) -> Self[src]

Create a new instance of Signature with the given args and without any return value.

Trait Implementations

impl Clone for Signature[src]

impl Debug for Signature[src]

impl Eq for Signature[src]

impl From<&'_ Signature> for Signature[src]

impl PartialEq<Signature> for Signature[src]

impl StructuralEq for Signature[src]

impl StructuralPartialEq for Signature[src]

Auto Trait Implementations

impl RefUnwindSafe for Signature

impl Send for Signature

impl Sync for Signature

impl Unpin for Signature

impl UnwindSafe for Signature

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.