Enum bf::common::Command [−][src]
#[repr(u8)]pub enum Command { Right, Left, Up, Down, In, Out, Begin, End, }
The eight Brainfuck commands.
Variants
Right
>
: Increment the data pointer.
Left
<
: Decrement the data pointer.
Up
+
: Increment the byte value at the data pointer.
Down
-
: Decrement the byte value at the data pointer.
In
,
: Read a byte from the standard input.
Out
.
: Write a byte to the standard output.
Begin
[
: Begin a loop, which executes if the byte at the pointer is non-zero.
End
]
: End a loop, which repeats if the byte at the pointer is non-zero.
Trait Implementations
impl Clone for Command
[src]
impl Clone for Command
fn clone(&self) -> Command
[src]
fn clone(&self) -> Command
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 Copy for Command
[src]
impl Copy for Command
impl Debug for Command
[src]
impl Debug for Command
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 Command
[src]
impl Eq for Command
impl PartialEq for Command
[src]
impl PartialEq for Command