pub enum Command {
IncrementCell,
DecrementCell,
MoveRight,
MoveLeft,
JumpForward,
JumpBackward,
OutputFromCell,
InputToCell,
}
Expand description
An executable HOHOHO! command.
Variants§
IncrementCell
Increment memory cell at pointer.
DecrementCell
Decrement memory cell at pointer.
MoveRight
Move pointer to the right (or “forward” on the “tape”).
MoveLeft
Move pointer to the left (or “backward” on the “tape”).
JumpForward
Jump past the matching HoHoHO
if the cell at the pointer is 0
.
JumpBackward
Jump back to the matching HOHoHo
if the cell at the pointer is not 0
.
OutputFromCell
Output the character signified by the memory cell where the pointer is.
InputToCell
Input a character and store it in the memory cell where the pointer is.
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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