Enum advent_solutions::advent2017::day16::Move [] [src]

pub enum Move {
    Spin(usize),
    Exchange(usizeusize),
    Partner(charchar),
}

The programs' dance consists of a sequence of dance moves:

For example, with only five programs standing in a line (abcde), they could do the following dance:

let starting_programs = vec!['a', 'b', 'c', 'd', 'e'];

After finishing their dance, the programs end up in order baedc.

Variants

Methods

impl Move
[src]

[src]

Trait Implementations

impl Copy for Move
[src]

impl Clone for Move
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Move
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Move
[src]

impl Debug for Move
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Move
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more