Struct sudoku::Point [] [src]

pub struct Point(_);

Specifies a sudoku element's location in space.

The point is fully specified in DIMENSIONS dimensions.

Coordinate System

The coordinate system used in this library sets the origin in the top-left corner, with increasing x to the right and increasing y downward.

Additional axes (if applicable) follow the right-hand rule.

Methods

impl Point
[src]

[src]

Compresses an n-dimensional point to a single coordinate.

Inverse of Point::unfold.

[src]

Decompresses a single coordinate into an n-dimensional point.

Inverse of Point::fold.

[src]

Snaps a point to the grid (returns the upper-left corner of the box).

[src]

Creates a point with the given x-coordinate and all other coordinates zero.

[src]

Creates a point with the given y-coordinate and all other coordinates zero.

[src]

The point with all coordinates identically zero.

Trait Implementations

impl Copy for Point
[src]

impl Clone for Point
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Point
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Point
[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 Index<usize> for Point
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for Point
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl Display for Point
[src]

[src]

Formats the value using the given formatter. Read more

impl Index<Point> for Sudoku
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl Send for Point

impl Sync for Point