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§impl PartialOrd for WasmSignature
impl PartialOrd for WasmSignature
impl 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.