Struct cetkaik_fundamental::color_and_prof::ColorAndProf
source · pub struct ColorAndProf {
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 ColorAndProf
impl Clone for ColorAndProf
source§fn clone(&self) -> ColorAndProf
fn clone(&self) -> ColorAndProf
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 ColorAndProf
impl Debug for ColorAndProf
source§impl<'de> Deserialize<'de> for ColorAndProf
impl<'de> Deserialize<'de> for ColorAndProf
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ColorAndProf
impl Display for ColorAndProf
source§impl Hash for ColorAndProf
impl Hash for ColorAndProf
source§impl PartialEq<ColorAndProf> for ColorAndProf
impl PartialEq<ColorAndProf> for ColorAndProf
source§fn eq(&self, other: &ColorAndProf) -> bool
fn eq(&self, other: &ColorAndProf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.