Enum bf::common::Command[][src]

#[repr(u8)]
pub enum Command { Right, Left, Up, Down, In, Out, Begin, End, }

The eight Brainfuck commands.

Variants

>: Increment the data pointer.

<: Decrement the data pointer.

+: Increment the byte value at the data pointer.

-: Decrement the byte value at the data pointer.

,: Read a byte from the standard input.

.: Write a byte to the standard output.

[: Begin a loop, which executes if the byte at the pointer is non-zero.

]: End a loop, which repeats if the byte at the pointer is non-zero.

Trait Implementations

impl Clone for Command
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Command
[src]

impl Debug for Command
[src]

Formats the value using the given formatter. Read more

impl Eq for Command
[src]

impl PartialEq for Command
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Command

impl Sync for Command