For the first example in README.md, we have this code:
// lets iterate over targets.
let targets = board.color_combined(!board.side_to_move());
iterable.set_iterator_mask(targets);
Notice that the target should be a &BitBoard type. However, set_iterator_mask accepts mask: BitBoard which is not a pointer. Therefore, building the project gives me this error:
mismatched types [E0308] expected `BitBoard`, found `&BitBoard`
If I dereference target using *, it works.
Can you recheck if the example is correct?
For the first example in README.md, we have this code:
Notice that the target should be a
&BitBoard
type. However,set_iterator_mask
acceptsmask: BitBoard
which is not a pointer. Therefore, building the project gives me this error:If I dereference target using
*
, it works. Can you recheck if the example is correct?