pub enum HexOrientation {
FlatTopOddUp,
FlatTopOddDown,
PointyTopOddRight,
PointyTopOddLeft,
}Expand description
Specifies the orientation of the hexagon space in Offset layouts. This is important for determining the available neighbouring nodes during expansion.
Flat-top odd columns moved up
___
___/ O \
/ E \___/
\___/Flat-top odd columns moved down
___
/ E \___
\___/ O \
\___/Variants§
Auto Trait Implementations§
impl Freeze for HexOrientation
impl RefUnwindSafe for HexOrientation
impl Send for HexOrientation
impl Sync for HexOrientation
impl Unpin for HexOrientation
impl UnwindSafe for HexOrientation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more