pub enum FlowDirection {
None,
Left,
Right,
Up,
Down,
}Expand description
Cardinal step stored in a prepared flow field cell.
Self::None marks the goal, blocked/out-of-bounds probes, or unreachable cells.
Variants§
None
Unreachable or goal cell (no step).
Left
Step toward decreasing x.
Right
Step toward increasing x.
Up
Step toward decreasing y.
Down
Step toward increasing y.
Implementations§
Source§impl FlowDirection
impl FlowDirection
Trait Implementations§
Source§impl Clone for FlowDirection
impl Clone for FlowDirection
Source§fn clone(&self) -> FlowDirection
fn clone(&self) -> FlowDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FlowDirection
Source§impl Debug for FlowDirection
impl Debug for FlowDirection
impl Eq for FlowDirection
Source§impl PartialEq for FlowDirection
impl PartialEq for FlowDirection
impl StructuralPartialEq for FlowDirection
Auto Trait Implementations§
impl Freeze for FlowDirection
impl RefUnwindSafe for FlowDirection
impl Send for FlowDirection
impl Sync for FlowDirection
impl Unpin for FlowDirection
impl UnsafeUnpin for FlowDirection
impl UnwindSafe for FlowDirection
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