[board] Implement Copy for Mailbox struct
This commit is contained in:
parent
c733342fca
commit
72fd938238
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
use chessfriend_core::{Piece, PlacedPiece, Square};
|
use chessfriend_core::{Piece, PlacedPiece, Square};
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
|
|
||||||
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
|
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
||||||
pub(crate) struct Mailbox([Option<Piece>; Square::NUM]);
|
pub(crate) struct Mailbox([Option<Piece>; Square::NUM]);
|
||||||
|
|
||||||
impl Mailbox {
|
impl Mailbox {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue