pub enum StackOp {
Push(Arg),
Pop(Arg),
}Expand description
Each integer being parsed consists of 18 lines of very similar code. We’ll cheat and only represent it with the pieces that are different.
Part of this instruction stream is implementing push/pop via an integer and multiplication/division, and we only care about one piece of data in each case.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackOp
impl RefUnwindSafe for StackOp
impl Send for StackOp
impl Sync for StackOp
impl Unpin for StackOp
impl UnsafeUnpin for StackOp
impl UnwindSafe for StackOp
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