Enum wasmtime_environ::ir::ValueLoc [−][src]
Expand description
Value location.
Variants
This value has not been assigned to a location yet.
Reg(u16)
Value is assigned to a register.
Stack(StackSlot)
Value is assigned to a stack slot.
Implementations
impl ValueLoc
[src]
impl ValueLoc
[src]pub fn is_assigned(self) -> bool
[src]
pub fn is_assigned(self) -> bool
[src]Is this an assigned location? (That is, not Unassigned
).
pub fn unwrap_reg(self) -> u16
[src]
pub fn unwrap_reg(self) -> u16
[src]Get the register unit of this location, or panic.
pub fn unwrap_stack(self) -> StackSlot
[src]
pub fn unwrap_stack(self) -> StackSlot
[src]Get the stack slot of this location, or panic.
Trait Implementations
impl<'de> Deserialize<'de> for ValueLoc
[src]
impl<'de> Deserialize<'de> for ValueLoc
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ValueLoc, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ValueLoc, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<ValueLoc> for LabelValueLoc
[src]
impl From<ValueLoc> for LabelValueLoc
[src]pub fn from(v: ValueLoc) -> LabelValueLoc
[src]
pub fn from(v: ValueLoc) -> LabelValueLoc
[src]Performs the conversion.
impl Serialize for ValueLoc
[src]
impl Serialize for ValueLoc
[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 ValueLoc
[src]
impl Eq for ValueLoc
[src]
impl StructuralEq for ValueLoc
[src]
impl StructuralPartialEq for ValueLoc
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueLoc
impl Send for ValueLoc
impl Sync for ValueLoc
impl Unpin for ValueLoc
impl UnwindSafe for ValueLoc
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>,