update documentation
This commit is contained in:
parent
ace749ac38
commit
4fc7e8d765
4 changed files with 23 additions and 23 deletions
11
src/setup.rs
11
src/setup.rs
|
|
@ -315,11 +315,11 @@ impl Setup {
|
|||
|
||||
/// Returns the quad-bitboard representation of the board.
|
||||
///
|
||||
/// This returns, in order:
|
||||
/// - the squares occupied by the pawns, bishops and queens
|
||||
/// - the squares occupied by the knights, bishops and kings
|
||||
/// - the squares occupied by the rooks, queens and kings
|
||||
/// - the squares occupied by the white pieces
|
||||
/// This returns, in order, the squares occpied by:
|
||||
/// - pawns, bishops and queens
|
||||
/// - knights, bishops and kings
|
||||
/// - rooks, queens and kings
|
||||
/// - white pieces
|
||||
#[inline]
|
||||
pub fn bitboards(&self) -> [Bitboard; 4] {
|
||||
self.bitboards
|
||||
|
|
@ -668,6 +668,7 @@ impl core::fmt::Display for IllegalPositionReason {
|
|||
/// An error when trying to parse a position record.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct ParseRecordError {
|
||||
/// The index where the error was detected.
|
||||
pub byte: usize,
|
||||
}
|
||||
impl core::fmt::Display for ParseRecordError {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue