Commit graph

6 commits

Author SHA1 Message Date
Bruno BELANYI 753f1590d1 Add 'Panics' section to 'from_index' methods 2024-04-03 21:26:18 +01:00
Bruno BELANYI d919b956ed Add 'NUM_VARIANTS' constant to all 'board' enums 2024-04-01 22:20:39 +01:00
Bruno BELANYI 407f85c19b Consistently use 'Self' type in 'impl' blocks 2024-04-01 22:20:39 +01:00
Bruno BELANYI 585c127381 Statically assert zero-cost invariants
Since some or all of those invariants will come in handy to ensure we
use as little memory as possible, to maximize the speed of the move
generation later on.
2024-04-01 22:20:39 +01:00
Bruno BELANYI 7a7e7f3665 Add 'Rank::{up,down}' 2024-04-01 22:20:39 +01:00
Bruno BELANYI 54d7f0d69f Add 'Rank' enum 2024-04-01 22:20:39 +01:00