#[repr(u8)]pub enum Side {
First = 0,
Second = 1,
}Expand description
The camp a piece belongs to.
In PIN, the case of the abbreviation letter encodes the side: an
uppercase letter (A–Z) denotes Side::First, a lowercase letter
(a–z) denotes Side::Second. This mirrors the two-side model of the
glossary: a side is a pure label
(first / second) that acquires meaning only once a rule system assigns
it to a player or piece.
Variants§
First = 0
The first side, encoded by an uppercase letter (A–Z).
Second = 1
The second side, encoded by a lowercase letter (a–z).
Implementations§
Trait Implementations§
Source§impl Ord for Side
impl Ord for Side
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Side
impl PartialOrd for Side
impl Copy for Side
impl Eq for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnsafeUnpin for Side
impl UnwindSafe for Side
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