Enum bf::peephole::Statement [−][src]
pub enum Statement { Instr(Instruction), Loop(Box<[Statement]>), }
Instructions as output by the peephole optimizer.
Variants
Instr(Instruction)
A bytecode instruction, which does not contain any loops.
Invariants
Should not contain a JumpZero
or JumpNotZero
instruction.
Loop(Box<[Statement]>)
A loop.
Trait Implementations
impl Clone for Statement
[src]
impl Clone for Statement
fn clone(&self) -> Statement
[src]
fn clone(&self) -> Statement
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Statement
[src]
impl Debug for Statement
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Statement
[src]
impl Eq for Statement
impl PartialEq for Statement
[src]
impl PartialEq for Statement