Piece derives Copy

这个提交包含在:
tali 2023-03-07 19:10:16 -05:00
父节点 111ca1a7bb
当前提交 c2e91dc30a
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -214,7 +214,7 @@ impl core::fmt::Debug for Cells<'_> {
}
/// Represents the current state of a piece.
#[derive(Clone, Eq, PartialEq, Debug, Hash)]
#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)]
pub struct Piece<T> {
/// The piece type (i.e. its shape).
pub ty: T,