chess_lab/common/errors/
board.rs

1/// Enum for errors that can occur when interacting with the board
2///
3/// # Variants
4/// * `Occupied`: The space is already occupied
5/// * `Empty`: The space is empty
6///
7#[derive(Debug, PartialEq)]
8pub enum BoardError {
9    Occupied,
10    Empty,
11}