Struct wasmtime_environ::ir::Signature [−][src]
pub struct Signature { pub params: Vec<AbiParam, Global>, pub returns: Vec<AbiParam, Global>, pub call_conv: CallConv, }
Expand description
Function signature.
The function signature describes the types of formal parameters and return values along with other details that are needed to call a function correctly.
A signature can optionally include ISA-specific ABI information which specifies exactly how arguments and return values are passed.
Fields
params: Vec<AbiParam, Global>
The arguments passed to the function.
returns: Vec<AbiParam, Global>
Values returned from the function.
call_conv: CallConv
Calling convention.
Implementations
impl Signature
[src]
impl Signature
[src]pub fn clear(&mut self, call_conv: CallConv)
[src]
pub fn clear(&mut self, call_conv: CallConv)
[src]Clear the signature so it is identical to a fresh one returned by new()
.
pub fn display<'a, R>(&'a self, regs: R) -> DisplaySignature<'a> where
R: Into<Option<&'a RegInfo>>,
[src]
pub fn display<'a, R>(&'a self, regs: R) -> DisplaySignature<'a> where
R: Into<Option<&'a RegInfo>>,
[src]Return an object that can display self
with correct register names.
pub fn special_param_index(&self, purpose: ArgumentPurpose) -> Option<usize>
[src]
pub fn special_param_index(&self, purpose: ArgumentPurpose) -> Option<usize>
[src]Find the index of a presumed unique special-purpose parameter.
pub fn special_return_index(&self, purpose: ArgumentPurpose) -> Option<usize>
[src]
pub fn special_return_index(&self, purpose: ArgumentPurpose) -> Option<usize>
[src]Find the index of a presumed unique special-purpose parameter.
pub fn uses_special_param(&self, purpose: ArgumentPurpose) -> bool
[src]
pub fn uses_special_param(&self, purpose: ArgumentPurpose) -> bool
[src]Does this signature have a parameter whose ArgumentPurpose
is
purpose
?
pub fn uses_special_return(&self, purpose: ArgumentPurpose) -> bool
[src]
pub fn uses_special_return(&self, purpose: ArgumentPurpose) -> bool
[src]Does this signature have a return whose ArgumentPurpose
is purpose
?
pub fn num_special_params(&self) -> usize
[src]
pub fn num_special_params(&self) -> usize
[src]How many special parameters does this function have?
pub fn num_special_returns(&self) -> usize
[src]
pub fn num_special_returns(&self) -> usize
[src]How many special returns does this function have?
pub fn uses_struct_return_param(&self) -> bool
[src]
pub fn uses_struct_return_param(&self) -> bool
[src]Does this signature take an struct return pointer parameter?
pub fn is_multi_return(&self) -> bool
[src]
pub fn is_multi_return(&self) -> bool
[src]Does this return more than one normal value? (Pre-struct return legalization)
Trait Implementations
impl<'de> Deserialize<'de> for Signature
[src]
impl<'de> Deserialize<'de> for Signature
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Signature, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Signature, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Signature
[src]
impl Serialize for Signature
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Eq for Signature
[src]
impl StructuralEq for Signature
[src]
impl StructuralPartialEq for Signature
[src]
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,