Bruno BELANYI
8e688a0cac
Add 'try_from_index' implementations
2024-04-03 21:26:18 +01:00
Bruno BELANYI
753f1590d1
Add 'Panics' section to 'from_index' methods
2024-04-03 21:26:18 +01:00
Bruno BELANYI
bed7ec3be2
Remove spurious links in 'Square' documentation
2024-04-01 22:20:39 +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
c177d13b75
Use 'Square::index' in 'Square::{file,rank}_index'
2024-04-01 22:20:39 +01:00
Bruno BELANYI
281c79556a
Add 'Square::index'
2024-04-01 22:20:39 +01:00
Bruno BELANYI
6501466d3e
Add 'Square' constructor from 'File', 'Rank'
2024-04-01 22:20:39 +01:00
Bruno BELANYI
c3c3684150
Don't return 'Bitboard' from 'Square::{file,rank}'
2024-04-01 22:20:39 +01:00
Bruno BELANYI
015485a4c5
Add 'Bitboard' and 'Square' definitions
2024-04-01 22:20:39 +01:00