Enum hex2d::IntegerSpacing [−][src]
pub enum IntegerSpacing<I> { FlatTop(I, I), PointyTop(I, I), }
Expand description
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<I> RefUnwindSafe for IntegerSpacing<I> where
I: RefUnwindSafe,
impl<I> Send for IntegerSpacing<I> where
I: Send,
impl<I> Sync for IntegerSpacing<I> where
I: Sync,
impl<I> Unpin for IntegerSpacing<I> where
I: Unpin,
impl<I> UnwindSafe for IntegerSpacing<I> where
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more