pub enum StoreOperand<L> {
Push,
Discard,
FrameAddr(u32),
DerefLabel(LabelRef<L>),
}
Expand description
An operand indicating where to put a value.
Variants§
Push
Push the value to the stack.
Discard
Discard the value.
FrameAddr(u32)
Store the value to the stack address at the given offset from the frame pointer.
DerefLabel(LabelRef<L>)
Store the value to the address given by the label+offset.
Implementations§
Source§impl<L> StoreOperand<L>
impl<L> StoreOperand<L>
Sourcepub fn map<F, M>(self, f: F) -> StoreOperand<M>where
F: FnMut(L) -> M,
pub fn map<F, M>(self, f: F) -> StoreOperand<M>where
F: FnMut(L) -> M,
Applies the given mapping function to the label (if any) within the operand.
Trait Implementations§
Source§impl<L: Clone> Clone for StoreOperand<L>
impl<L: Clone> Clone for StoreOperand<L>
Source§fn clone(&self) -> StoreOperand<L>
fn clone(&self) -> StoreOperand<L>
Returns a duplicate 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<L: Debug> Debug for StoreOperand<L>
impl<L: Debug> Debug for StoreOperand<L>
Source§impl<L> Display for StoreOperand<L>where
L: Display,
impl<L> Display for StoreOperand<L>where
L: Display,
Source§impl<L: Hash> Hash for StoreOperand<L>
impl<L: Hash> Hash for StoreOperand<L>
Source§impl<L: PartialEq> PartialEq for StoreOperand<L>
impl<L: PartialEq> PartialEq for StoreOperand<L>
impl<L: Copy> Copy for StoreOperand<L>
impl<L: Eq> Eq for StoreOperand<L>
impl<L> StructuralPartialEq for StoreOperand<L>
Auto Trait Implementations§
impl<L> Freeze for StoreOperand<L>where
L: Freeze,
impl<L> RefUnwindSafe for StoreOperand<L>where
L: RefUnwindSafe,
impl<L> Send for StoreOperand<L>where
L: Send,
impl<L> Sync for StoreOperand<L>where
L: Sync,
impl<L> Unpin for StoreOperand<L>where
L: Unpin,
impl<L> UnwindSafe for StoreOperand<L>where
L: UnwindSafe,
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