1
0
Fork 0

update documentation

This commit is contained in:
Paul-Nicolas Madelaine 2025-11-26 23:03:23 +01:00
parent ace749ac38
commit 4fc7e8d765
4 changed files with 23 additions and 23 deletions

View file

@ -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 {