Struct wit_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 core 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 for WasmSignature
impl PartialEq 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 for WasmSignature
impl PartialOrd 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 moreimpl Eq for WasmSignature
impl StructuralPartialEq for WasmSignature
Auto Trait Implementations§
impl Freeze for WasmSignature
impl RefUnwindSafe for WasmSignature
impl Send for WasmSignature
impl Sync for WasmSignature
impl Unpin for WasmSignature
impl UnwindSafe for WasmSignature
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.