bit_board/
lib.rs

1use std::error::Error;
2use std::fmt;
3
4pub mod bitboard;
5pub mod bitboarddyn;
6pub mod bitboardstatic;
7
8#[derive(Debug)]
9pub struct DimensionMismatch;
10
11impl fmt::Display for DimensionMismatch {
12    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
13        write!(f, "Dimensions do not match.")
14    }
15}
16
17impl Error for DimensionMismatch {}