Struct wasmtime_environ::ir::AbiParam [−][src]
pub struct AbiParam { pub value_type: Type, pub purpose: ArgumentPurpose, pub extension: ArgumentExtension, pub location: ArgumentLoc, pub legalized_to_pointer: bool, }
Expand description
Function parameter or return value descriptor.
This describes the value type being passed to or from a function along with flags that affect how the argument is passed.
Fields
value_type: Type
Type of the argument value.
purpose: ArgumentPurpose
Special purpose of argument, or Normal
.
extension: ArgumentExtension
Method for extending argument to a full register.
location: ArgumentLoc
ABI-specific location of this argument, or Unassigned
for arguments that have not yet
been legalized.
legalized_to_pointer: bool
Was the argument converted to pointer during legalization?
Implementations
impl AbiParam
[src]
impl AbiParam
[src]pub fn special(vt: Type, purpose: ArgumentPurpose) -> AbiParam
[src]
pub fn special(vt: Type, purpose: ArgumentPurpose) -> AbiParam
[src]Create a special-purpose parameter that is not (yet) bound to a specific register.
pub fn special_reg(vt: Type, purpose: ArgumentPurpose, regunit: u16) -> AbiParam
[src]
pub fn special_reg(vt: Type, purpose: ArgumentPurpose, regunit: u16) -> AbiParam
[src]Create a parameter for a special-purpose register.
Trait Implementations
impl<'de> Deserialize<'de> for AbiParam
[src]
impl<'de> Deserialize<'de> for AbiParam
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AbiParam, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AbiParam, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for AbiParam
[src]
impl Serialize for AbiParam
[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 Copy for AbiParam
[src]
impl Eq for AbiParam
[src]
impl StructuralEq for AbiParam
[src]
impl StructuralPartialEq for AbiParam
[src]
Auto Trait Implementations
impl RefUnwindSafe for AbiParam
impl Send for AbiParam
impl Sync for AbiParam
impl Unpin for AbiParam
impl UnwindSafe for AbiParam
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>,