pub struct NonTam2Piece {
pub color: Color,
pub prof: Profession,
}
Expand description
Describes a piece that is not a Tam2, and hence can be taken and be placed in a hop1zuo1. /駒のうち、皇以外を表す。これは手駒として存在できる駒でもある。
Fields§
§color: Color
color of the piece/駒の色
prof: Profession
profession of the piece/駒の職種
Trait Implementations§
source§impl Clone for NonTam2Piece
impl Clone for NonTam2Piece
source§fn clone(&self) -> NonTam2Piece
fn clone(&self) -> NonTam2Piece
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NonTam2Piece
impl Debug for NonTam2Piece
source§impl<'de> Deserialize<'de> for NonTam2Piece
impl<'de> Deserialize<'de> for NonTam2Piece
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NonTam2Piece, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<NonTam2Piece, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for NonTam2Piece
impl Display for NonTam2Piece
source§impl Hash for NonTam2Piece
impl Hash for NonTam2Piece
source§impl PartialEq<NonTam2Piece> for NonTam2Piece
impl PartialEq<NonTam2Piece> for NonTam2Piece
source§fn eq(&self, other: &NonTam2Piece) -> bool
fn eq(&self, other: &NonTam2Piece) -> bool
source§impl Serialize for NonTam2Piece
impl Serialize for NonTam2Piece
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more