[−]Trait myopic_brain::Reflectable
Chess is a symmetric game and this trait represents a component of the game which can be reflected to it's symmetric opposite component.
Required methods
pub fn reflect(&self) -> Self
Implementations on Foreign Types
impl Reflectable for i32
impl<T> Reflectable for Option<T> where
T: Reflectable,
T: Reflectable,
impl<T> Reflectable for Vec<T, Global> where
T: Reflectable,
T: Reflectable,
impl<T> Reflectable for BTreeSet<T> where
T: Reflectable + Ord,
T: Reflectable + Ord,
impl<T1, T2, T3> Reflectable for (T1, T2, T3) where
T1: Reflectable,
T2: Reflectable,
T3: Reflectable,
T1: Reflectable,
T2: Reflectable,
T3: Reflectable,
impl<T1, T2> Reflectable for (T1, T2) where
T1: Reflectable,
T2: Reflectable,
Loading content...T1: Reflectable,
T2: Reflectable,
Implementors
impl Reflectable for CastleZone
A castle is reflected by it's side, i.e.
- WK <==> BK
- WQ <==> BQ
pub fn reflect(&self) -> CastleZone
impl Reflectable for Dir
impl Reflectable for Piece
We reflect a piece to it's correspondent on the opposite side.