Enum sudoku::Group [] [src]

pub enum Group {
    Box(Vec<Option<Element>>),
    Stack(Vec<Option<Element>>),
    Band(Vec<Option<Element>>),
}

A subdivision of the main sudoku; the smallest grouping to which rules are applied.

Variants

A square set of elements.

A subdivision of a sudoku.

Rule

Each box may contain each element value only once.

A vertical set of elements.

A subdivision of a sudoku.

Rule

Each stack may contain each element value only once.

A horizontal set of elements.

A subdivision of a sudoku.

Rule

Each band may contain each element value only once.

Dimensionality

In n dimensions, n - 1 bands apply to each element. Each is linearly independent from the others and from the relevant stack.

Methods

impl Group
[src]

[src]

Whether a group is valid (contains no errors).

A group is considered valid if it contains only unique elements (ignoring empty elements).

[src]

Whether a group is complete.

A group is considered complete if it contains every possible element value exactly once.

[src]

Returns an owned copy of the group's constituent elements.

Trait Implementations

impl Clone for Group
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Group
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Group
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Group

impl Sync for Group