Struct advent_solutions::advent2017::day25::Blueprint
[−]
[src]
pub struct Blueprint { /* fields omitted */ }You find the Turing machine blueprints (your puzzle input) on a tablet in a nearby pile of debris. Looking back up at the broken Turing machine above, you can start to identify its parts:
- A tape which contains
0repeated infinitely to the left and right. - A cursor, which can move left or right along the tape and read or write values at its current position.
- A set of states, each containing rules about what to do based on the current value under the cursor.
Each slot on the tape has two possible values: 0 (the starting value
for all slots) and 1. Based on whether the cursor is pointing at a 0
or a 1, the current state says what value to write at the current
position of the cursor, whether to move the cursor left or right one
slot, and which state to use next.
Trait Implementations
impl Clone for Blueprint[src]
fn clone(&self) -> Blueprint[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Blueprint[src]
fn eq(&self, __arg_0: &Blueprint) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Blueprint) -> bool[src]
This method tests for !=.