Enum bfk::CompressedOp
source · [−]pub enum CompressedOp {
Add(u8),
Sub(u8),
Back(usize),
Forward(usize),
PutChar,
GetChar,
LoopStart,
LoopEnd,
}
Expand description
Compressed operations
Variants
Add(u8)
Add to data
Sub(u8)
Subtract from data
Back(usize)
Move back pointer
Forward(usize)
Move forward 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 Clone for CompressedOp
impl Clone for CompressedOp
sourcefn clone(&self) -> CompressedOp
fn clone(&self) -> CompressedOp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CompressedOp
impl Debug for CompressedOp
sourceimpl PartialEq<CompressedOp> for CompressedOp
impl PartialEq<CompressedOp> for CompressedOp
sourcefn eq(&self, other: &CompressedOp) -> bool
fn eq(&self, other: &CompressedOp) -> bool
sourceimpl Runnable for CompressedOp
impl Runnable for CompressedOp
sourcefn run<R: Read, W: Write>(
&self,
code: &Code<Self>,
env: &mut Environment<'_, R, W>
)where
Self: Sized,
fn run<R: Read, W: Write>(
&self,
code: &Code<Self>,
env: &mut Environment<'_, R, W>
)where
Self: Sized,
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 CompressedOp
impl Eq for CompressedOp
impl StructuralEq for CompressedOp
impl StructuralPartialEq for CompressedOp
Auto Trait Implementations
impl RefUnwindSafe for CompressedOp
impl Send for CompressedOp
impl Sync for CompressedOp
impl Unpin for CompressedOp
impl UnwindSafe for CompressedOp
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