pub struct BoardBuilder { /* private fields */ }
Implementations§
Source§impl BoardBuilder
impl BoardBuilder
pub fn row(self, piece: Piece) -> Self
pub fn column(self, piece: Piece) -> Self
pub fn piece(self, piece: Piece) -> Self
pub fn enable_castling(self) -> Self
pub fn disable_castling(self) -> Self
pub fn enable_queenside_castle(self, color: Color) -> Self
pub fn disable_queenside_castle(self, color: Color) -> Self
pub fn enable_kingside_castle(self, color: Color) -> Self
pub fn disable_kingside_castle(self, color: Color) -> Self
pub fn build(self) -> Board
Trait Implementations§
Source§impl Default for BoardBuilder
impl Default for BoardBuilder
Auto Trait Implementations§
impl Freeze for BoardBuilder
impl RefUnwindSafe for BoardBuilder
impl Send for BoardBuilder
impl Sync for BoardBuilder
impl Unpin for BoardBuilder
impl UnwindSafe for BoardBuilder
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