Type Definition shakmaty::Material[][src]

type Material = ByColor<MaterialSide>;

The material configuration of both sides.

Implementations

impl Material[src]

pub fn new() -> Material[src]

pub fn by_piece(&self, piece: Piece) -> u8[src]

pub fn by_piece_mut(&mut self, piece: Piece) -> &mut u8[src]

pub fn is_empty(&self) -> bool[src]

pub fn count(&self) -> usize[src]

pub fn has_pawns(&self) -> bool[src]

pub fn from_ascii(s: &[u8]) -> Result<Material, ParseMaterialError>[src]

pub fn from_ascii_fen(s: &[u8]) -> Result<Material, ParseMaterialError>[src]

pub fn fen(&self) -> String[src]

Trait Implementations

impl<'a> Add<&'a ByColor<MaterialSide>> for Material[src]

type Output = Material

The resulting type after applying the + operator.

impl Add<ByColor<MaterialSide>> for Material[src]

type Output = Material

The resulting type after applying the + operator.

impl<'a> AddAssign<&'a ByColor<MaterialSide>> for Material[src]

impl AddAssign<ByColor<MaterialSide>> for Material[src]

impl Display for Material[src]

impl Extend<Piece> for Material[src]

impl FromIterator<Piece> for Material[src]

impl FromStr for Material[src]

type Err = ParseMaterialError

The associated error which can be returned from parsing.

impl<'a> Sub<&'a ByColor<MaterialSide>> for Material[src]

type Output = Material

The resulting type after applying the - operator.

impl Sub<ByColor<MaterialSide>> for Material[src]

type Output = Material

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a ByColor<MaterialSide>> for Material[src]

impl SubAssign<ByColor<MaterialSide>> for Material[src]