Enum hex2d::IntegerSpacing [] [src]

pub enum IntegerSpacing<I> {
    FlatTop(I, I),
    PointyTop(I, I),
}

Integer pixel tile size for integer pixel conversion functions

Example values that give good results:

  • FlatTop(3, 2)
  • PointyTop(2, 1)

Variants

Hex-grid with an edge on top

Hex-grid with a corner on top

Trait Implementations

impl<I: Copy> Copy for IntegerSpacing<I>
[src]

impl<I: Clone> Clone for IntegerSpacing<I>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<I: Eq> Eq for IntegerSpacing<I>
[src]

impl<I: PartialEq> PartialEq for IntegerSpacing<I>
[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<I: Debug> Debug for IntegerSpacing<I>
[src]

[src]

Formats the value using the given formatter.

impl<I: Hash> Hash for IntegerSpacing<I>
[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

impl<I: Ord> Ord for IntegerSpacing<I>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<I: PartialOrd> PartialOrd for IntegerSpacing<I>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<I: Decodable> Decodable for IntegerSpacing<I>
[src]

[src]

Deserialize a value using a Decoder.