Struct sp_wasm_interface::Signature [−][src]
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]
impl Signature[src]pub fn new<T: Into<Cow<'static, [ValueType]>>>(
args: T,
return_value: Option<ValueType>
) -> Self[src]
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.