pgn_filter 1.1.0

For searching/filtering pgn files of chess games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::piece::Piece;
use crate::square::Square;

/// Pieces are made from a piece name and a square
#[derive(Debug)]
pub struct PieceDefn {
    pub name: Piece,
    pub square: Square,
}

impl PartialEq for PieceDefn {
    fn eq(&self, other: &Self) -> bool {
        self.name == other.name && self.square == other.square
    }
}
impl Eq for PieceDefn {}