pub enum DiagonalRule {
Always,
IfEitherOpen,
IfBothOpen,
}Expand description
Rule for diagonal moves past the two orthogonally adjacent cells.
Variants§
Always
Diagonals may pass between two blocked cells.
IfEitherOpen
At least one orthogonally adjacent cell must be walkable.
IfBothOpen
Both orthogonally adjacent cells must be walkable: no corner cutting.
Trait Implementations§
Source§impl Clone for DiagonalRule
impl Clone for DiagonalRule
impl Copy for DiagonalRule
Source§impl Debug for DiagonalRule
impl Debug for DiagonalRule
Source§impl Default for DiagonalRule
impl Default for DiagonalRule
impl Eq for DiagonalRule
Source§impl Hash for DiagonalRule
impl Hash for DiagonalRule
Source§impl PartialEq for DiagonalRule
impl PartialEq for DiagonalRule
impl StructuralPartialEq for DiagonalRule
Auto Trait Implementations§
impl Freeze for DiagonalRule
impl RefUnwindSafe for DiagonalRule
impl Send for DiagonalRule
impl Sync for DiagonalRule
impl Unpin for DiagonalRule
impl UnsafeUnpin for DiagonalRule
impl UnwindSafe for DiagonalRule
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