Struct wai_parser::abi::WasmSignature
source · pub struct WasmSignature {
pub params: Vec<WasmType>,
pub results: Vec<WasmType>,
pub indirect_params: bool,
pub retptr: bool,
}
Expand description
A raw WebAssembly signature with params and results.
Fields§
§params: Vec<WasmType>
The WebAssembly parameters of this function.
results: Vec<WasmType>
The WebAssembly results of this function.
indirect_params: bool
Whether or not this signature is passing all of its parameters
indirectly through a pointer within params
.
Note that params
still reflects the true wasm paramters of this
function, this is auxiliary information for code generators if
necessary.
retptr: bool
Whether or not this signature is using a return pointer to store the
result of the function, which is reflected either in params
or
results
depending on the context this function is used (e.g. an import
or an export).
Trait Implementations§
source§impl Clone for WasmSignature
impl Clone for WasmSignature
source§fn clone(&self) -> WasmSignature
fn clone(&self) -> WasmSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WasmSignature
impl Debug for WasmSignature
source§impl Hash for WasmSignature
impl Hash for WasmSignature
source§impl Ord for WasmSignature
impl Ord for WasmSignature
source§fn cmp(&self, other: &WasmSignature) -> Ordering
fn cmp(&self, other: &WasmSignature) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WasmSignature> for WasmSignature
impl PartialEq<WasmSignature> for WasmSignature
source§fn eq(&self, other: &WasmSignature) -> bool
fn eq(&self, other: &WasmSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WasmSignature> for WasmSignature
impl PartialOrd<WasmSignature> for WasmSignature
source§fn partial_cmp(&self, other: &WasmSignature) -> Option<Ordering>
fn partial_cmp(&self, other: &WasmSignature) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more