chess_lab/common/errors/
movements.rs

1/// Errors that can occur when trying to move a piece
2///
3/// # Variants
4/// * `Invalid`: The move is invalid
5/// * `Illegal`: The move is illegal
6/// * `Ambiguous`: The move is ambiguous
7///
8#[derive(Debug, PartialEq)]
9pub enum MoveError {
10    Invalid,
11    Illegal,
12    Ambiguous,
13}