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.
fn add(self, other: &'a Material) -> Material
[src]
impl Add<ByColor<MaterialSide>> for Material
[src]
type Output = Material
The resulting type after applying the +
operator.
fn add(self, other: Material) -> Material
[src]
impl<'a> AddAssign<&'a ByColor<MaterialSide>> for Material
[src]
fn add_assign(&mut self, other: &'a Material)
[src]
impl AddAssign<ByColor<MaterialSide>> for Material
[src]
fn add_assign(&mut self, other: Material)
[src]
impl Display for Material
[src]
impl Extend<Piece> for Material
[src]
fn extend<T: IntoIterator<Item = Piece>>(&mut self, iter: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<Piece> for Material
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Piece>,
[src]
T: IntoIterator<Item = Piece>,
impl FromStr for Material
[src]
type Err = ParseMaterialError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Material, ParseMaterialError>
[src]
impl<'a> Sub<&'a ByColor<MaterialSide>> for Material
[src]
type Output = Material
The resulting type after applying the -
operator.
fn sub(self, other: &'a Material) -> Material
[src]
impl Sub<ByColor<MaterialSide>> for Material
[src]
type Output = Material
The resulting type after applying the -
operator.