pub enum CoordsOrEdge {
Coords(Coords),
Edge(Edge),
}
Expand description
Represents either a cell of the board or an edge. This type is used in a few places that may return both coords and edges (e.g. get_neighbors).
Variants§
Trait Implementations§
Source§impl Clone for CoordsOrEdge
impl Clone for CoordsOrEdge
Source§fn clone(&self) -> CoordsOrEdge
fn clone(&self) -> CoordsOrEdge
Returns a duplicate of the value. Read more
1.0.0 · 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 CoordsOrEdge
impl Debug for CoordsOrEdge
Source§impl From<Coords> for CoordsOrEdge
impl From<Coords> for CoordsOrEdge
Source§fn from(coords: Coords) -> CoordsOrEdge
fn from(coords: Coords) -> CoordsOrEdge
Converts to this type from the input type.
Source§impl From<Edge> for CoordsOrEdge
impl From<Edge> for CoordsOrEdge
Source§fn from(edge: Edge) -> CoordsOrEdge
fn from(edge: Edge) -> CoordsOrEdge
Converts to this type from the input type.
Source§impl PartialEq for CoordsOrEdge
impl PartialEq for CoordsOrEdge
impl Copy for CoordsOrEdge
impl Eq for CoordsOrEdge
impl StructuralPartialEq for CoordsOrEdge
Auto Trait Implementations§
impl Freeze for CoordsOrEdge
impl RefUnwindSafe for CoordsOrEdge
impl Send for CoordsOrEdge
impl Sync for CoordsOrEdge
impl Unpin for CoordsOrEdge
impl UnwindSafe for CoordsOrEdge
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