You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: