1
0
Fork 0
This commit is contained in:
Paul-Nicolas Madelaine 2025-11-13 23:10:22 +01:00
parent 01253b66de
commit 457e0c5aff
2 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,7 @@ use std::iter::ExactSizeIterator;
use std::iter::FusedIterator;
/// A legal move.
#[must_use]
#[derive(Clone, Copy)]
pub struct Move<'l> {
position: &'l Position,
@ -199,6 +200,7 @@ impl<'l> Move<'l> {
///
/// It can be obtained using the [`Position::legal_moves`] method. This type is an iterator over
/// [`Move`] objects.
#[must_use]
pub struct Moves<'l> {
position: &'l Position,
is_check: bool,