Struct wasmi::Signature
[−]
[src]
pub struct Signature { /* fields omitted */ }
Signature of a function.
Signature of a function consists of zero or more parameter types and zero or one return type.
Two signatures are considered equal if they have equal list of parameters and equal return types.
Methods
impl Signature
[src]
pub fn new<C: Into<Cow<'static, [ValueType]>>>(
params: C,
return_type: Option<ValueType>
) -> Signature
[src]
params: C,
return_type: Option<ValueType>
) -> Signature
Creates new signature with givens parameter types and optional return type.
pub fn params(&self) -> &[ValueType]
[src]
Returns parameter types of this signature.
pub fn return_type(&self) -> Option<ValueType>
[src]
Returns return type of this signature.
Trait Implementations
impl Debug for Signature
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Signature
[src]
fn clone(&self) -> Signature
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Signature
[src]
fn eq(&self, __arg_0: &Signature) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Signature) -> bool
[src]
This method tests for !=
.