pub enum Edge {
Left,
Top,
Right,
Bottom,
}
Expand description
Represents the four edges of the board.
The top and bottom edge belong to player Black
, the other two edges belong to player White
.
Variants§
Trait Implementations§
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.
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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