Trait pleco::core::mono_traits::PieceTrait [−][src]
pub trait PieceTrait { fn piece_type() -> PieceType; }
A PieceTrait
allows for specific functions in relation
to the type of move.
Alike PlayerTrait
and GenTypeTrait
, PieceTrait
is only used for compile-time
optimization through mono-morphism. This trait isn't intended to be used
elsewhere.
Required Methods
fn piece_type() -> PieceType
Returns the Piece
of an object.
Implementors
impl PieceTrait for PawnType
impl PieceTrait for KnightType
impl PieceTrait for BishopType
impl PieceTrait for RookType
impl PieceTrait for QueenType
impl PieceTrait for KingType