pub struct SquareDiagonalShape<E = Undirected> { /* private fields */ }
Expand description

Shape for lattice graph with Square and Diagonal Edge.

Implementations

Create a new graph.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

Axis of the lattice.

Coordinate of the lattice graph.

Error to return when to_offset fails. Should set Infallible when the graph is looped and never to fail. Read more

Error to return when move_coord fails. Should set Infallible when the graph is looped and never to fail. Read more

Horizontal node count.

Vertical node count.

Convert coordinate to Offset.

Convert coordinate to Offset without a check.

Convert coordinate from Offset.

Move coordinates to the next coordinate in the direction. Coordinate should be a valid coordinate and should be checked before using move_coord. This is because the target coordinate might be valid even thought the souce coord is invalid, and some code validate the direction by moveing the coord. Read more

Node count.

Convert coordinate from index.

Covert coordinate to index.

Convert index to offset.

Covert offset to index.

👎 Deprecated

Edge count of horizontal. May differ by the axis info.

👎 Deprecated

Edge count of vertical. May differ by the axis info.

Move coordinates to the next coordinate in the direction. Caller should be sure that the source and the target coord is valid coord. Read more

Check whether two coordinate is in neighbor.

Get direction if two coordiante is in neighbor.

Axis of the lattice.

Coordinate of the lattice graph.

Error to return when to_offset fails. Should set Infallible when the graph is looped and never to fail. Read more

Error to return when move_coord fails. Should set Infallible when the graph is looped and never to fail. Read more

Horizontal node count.

Vertical node count.

Convert coordinate to Offset.

Convert coordinate to Offset without a check.

Convert coordinate from Offset.

Move coordinates to the next coordinate in the direction. Coordinate should be a valid coordinate and should be checked before using move_coord. This is because the target coordinate might be valid even thought the souce coord is invalid, and some code validate the direction by moveing the coord. Read more

Node count.

Convert coordinate from index.

Covert coordinate to index.

Convert index to offset.

Covert offset to index.

👎 Deprecated

Edge count of horizontal. May differ by the axis info.

👎 Deprecated

Edge count of vertical. May differ by the axis info.

Move coordinates to the next coordinate in the direction. Caller should be sure that the source and the target coord is valid coord. Read more

Check whether two coordinate is in neighbor.

Get direction if two coordiante is in neighbor.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

get wheter the type is const generic wrapper.

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.