pub enum Op {
Inc,
Dec,
IncPtr,
DecPtr,
PutChar,
GetChar,
LoopStart,
LoopEnd,
}
Expand description
Operations
Variants
Inc
Increment data.
Dec
Decrement data.
IncPtr
Increment pointer.
DecPtr
Decrement pointer.
PutChar
Get and put character of data under pointer.
GetChar
Read character of data under pointer to stdout.
LoopStart
Start of loop.
LoopEnd
End of loop.
Trait Implementations
sourceimpl Runnable for Op
impl Runnable for Op
sourcefn run<R: Read, W: Write>(
&self,
code: &Code<Self>,
env: &mut Environment<'_, R, W>
)
fn run<R: Read, W: Write>(
&self,
code: &Code<Self>,
env: &mut Environment<'_, R, W>
)
Run the operation over code and environment
fn process_loop_start<R: Read, W: Write>(
code: &Code<Self>,
env: &mut Environment<'_, R, W>
)where
Self: Sized,
fn process_loop_end<R: Read, W: Write>(
code: &Code<Self>,
env: &mut Environment<'_, R, W>
)where
Self: Sized,
impl Copy for Op
impl Eq for Op
impl StructuralEq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more