Struct tetcore_wasm_interface::Signature[][src]

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

The Signature of a function

Fields

args: Cow<'static, [ValueType]>

The arguments of a function.

return_value: Option<ValueType>

The optional return value of a function.

Implementations

impl Signature[src]

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

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

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

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

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.