pub struct Mailbox { /* private fields */ }
Expand description
Classic 8x8 square board representation of Chess board. Mailbox is Square-Centric, meaning it indexes by square to get a piece, as opposed to a PieceSets which indexes by piece to get squares. Index starts at A1. A1 = idx 0 B1 = idx 1 A2 = idx 8 H7 = idx 63
Implementations§
Trait Implementations§
Source§impl FenComponent for Mailbox
Placement FenComponent.
impl FenComponent for Mailbox
Placement FenComponent.
type Error = ParseFenError
fn try_from_fen_str(s: &str) -> Result<Self, Self::Error>
fn to_fen_str(&self) -> String
Source§impl<I: SquareIndexable> Index<I> for Mailbox
impl<I: SquareIndexable> Index<I> for Mailbox
Source§impl Index<usize> for Mailbox
Be careful with accessing with usize, as usize value out of bounds will panic.
impl Index<usize> for Mailbox
Be careful with accessing with usize, as usize value out of bounds will panic.
Source§impl<I: SquareIndexable> IndexMut<I> for Mailbox
impl<I: SquareIndexable> IndexMut<I> for Mailbox
impl Eq for Mailbox
impl StructuralPartialEq for Mailbox
Auto Trait Implementations§
impl Freeze for Mailbox
impl RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl UnwindSafe for Mailbox
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