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 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: boolWhether 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: boolWhether 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
sourceimpl Clone for WasmSignature
impl Clone for WasmSignature
sourcefn clone(&self) -> WasmSignature
fn clone(&self) -> WasmSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for WasmSignature
impl Debug for WasmSignature
sourceimpl Hash for WasmSignature
impl Hash for WasmSignature
sourceimpl Ord for WasmSignature
impl Ord for WasmSignature
sourcefn cmp(&self, other: &WasmSignature) -> Ordering
fn cmp(&self, other: &WasmSignature) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<WasmSignature> for WasmSignature
impl PartialEq<WasmSignature> for WasmSignature
sourcefn eq(&self, other: &WasmSignature) -> bool
fn eq(&self, other: &WasmSignature) -> bool
sourceimpl PartialOrd<WasmSignature> for WasmSignature
impl PartialOrd<WasmSignature> for WasmSignature
sourcefn partial_cmp(&self, other: &WasmSignature) -> Option<Ordering>
fn partial_cmp(&self, other: &WasmSignature) -> Option<Ordering>
1.0.0 · sourcefn 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 StructuralEq for WasmSignature
impl StructuralPartialEq for WasmSignature
Auto Trait Implementations
impl RefUnwindSafe for WasmSignature
impl Send for WasmSignature
impl Sync for WasmSignature
impl Unpin for WasmSignature
impl UnwindSafe for WasmSignature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.