impl Clone for Moves<'l>
This commit is contained in:
parent
270ac66db4
commit
5d2129b797
2 changed files with 15 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ impl<'l> Move<'l> {
|
|||
/// Even though the [`Position`] type can represent more positions than just reachable positions,
|
||||
/// the proof still holds, as its definition of a position is even less restrictive.
|
||||
#[must_use]
|
||||
#[derive(Clone)]
|
||||
pub struct Moves<'l> {
|
||||
position: &'l Position,
|
||||
is_check: bool,
|
||||
|
|
@ -345,6 +346,7 @@ impl<'l> Moves<'l> {
|
|||
}
|
||||
|
||||
/// An iterator over legal moves.
|
||||
#[derive(Clone)]
|
||||
pub struct MovesIter<'l> {
|
||||
position: &'l Position,
|
||||
iter: core::slice::Iter<'l, RawMove>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue