pub enum Neighborhood {
Orthogonal,
Diagonal,
Square,
}Expand description
Neighborhoods around a point. They do not contain the point itself
Variants§
Orthogonal
The neighborhood consisting of the points directly North, South, East, and West of a point.
Diagonal
The neighborhood consisting of the points directly diagonal to a point.
Square
The neighborhood consisting of the square directly around the point.
Trait Implementations§
Source§impl Clone for Neighborhood
impl Clone for Neighborhood
Source§fn clone(&self) -> Neighborhood
fn clone(&self) -> Neighborhood
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 moreSource§impl Debug for Neighborhood
impl Debug for Neighborhood
Source§impl Hash for Neighborhood
impl Hash for Neighborhood
Source§impl PartialEq for Neighborhood
impl PartialEq for Neighborhood
Source§fn eq(&self, other: &Neighborhood) -> bool
fn eq(&self, other: &Neighborhood) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Neighborhood
impl Eq for Neighborhood
impl StructuralPartialEq for Neighborhood
Auto Trait Implementations§
impl Freeze for Neighborhood
impl RefUnwindSafe for Neighborhood
impl Send for Neighborhood
impl Sync for Neighborhood
impl Unpin for Neighborhood
impl UnsafeUnpin for Neighborhood
impl UnwindSafe for Neighborhood
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