remove num crate

This commit is contained in:
2025-03-25 15:40:24 -04:00
parent f10f4d83e0
commit 4848c0cd61
3 changed files with 2 additions and 69 deletions

View File

@@ -1,6 +1,5 @@
use super::Board;
use allocative::Allocative;
use num::Integer;
use static_assertions::const_assert;
/// PERF! having `Coord` be of type `u8` (instead of usize) increases
@@ -22,8 +21,8 @@ impl CoordPair {
}
#[allow(clippy::wrong_self_convention)]
fn into_indexes(&self) -> (CoordAxis, CoordAxis) {
self.0.div_mod_floor(&Board::SIZE)
pub const fn into_indexes(&self) -> (CoordAxis, CoordAxis) {
(self.0 / Board::SIZE, self.0 % Board::SIZE)
}
pub const fn area(pos: CoordAxis) -> Self {