Trait hexe_core::board::multi_board::Index
[−]
[src]
pub trait Index { fn bitboard(self, board: &MultiBoard) -> Bitboard; fn remove<T: Into<Bitboard>>(self, bits: T, board: &mut MultiBoard); fn remove_unchecked<T: Into<Bitboard>>(
self,
bits: T,
board: &mut MultiBoard
); }
A type that can be used for MultiBoard
indexing
operations.
Required Methods
ⓘImportant traits for Bitboard
fn bitboard(self, board: &MultiBoard) -> Bitboard
Returns the bitboard for self
in board
.
fn remove<T: Into<Bitboard>>(self, bits: T, board: &mut MultiBoard)
Removes the bits
of self
from board
.
fn remove_unchecked<T: Into<Bitboard>>(self, bits: T, board: &mut MultiBoard)
Performs a blind removal of self
at bits
in board
.