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

Returns the Piece of an object.

Implementors