[−][src]Struct shakmaty::Material
The material configuration of both sides.
Fields
white: MaterialSide
black: MaterialSide
Implementations
impl Material
[src]
pub fn new() -> Material
[src]
pub fn flip(&mut self)
[src]
pub fn flipped(&self) -> Material
[src]
pub fn normalize(&mut self)
[src]
pub fn normalized(&self) -> Material
[src]
pub fn is_symmetric(&self) -> bool
[src]
pub fn by_color(&self, color: Color) -> &MaterialSide
[src]
pub fn by_color_mut(&mut self, color: Color) -> &mut MaterialSide
[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 Material> for Material
[src]
type Output = Material
The resulting type after applying the +
operator.
fn add(self, other: &'a Material) -> Material
[src]
impl Add<Material> for Material
[src]
type Output = Material
The resulting type after applying the +
operator.
fn add(self, other: Material) -> Material
[src]
impl<'a> AddAssign<&'a Material> for Material
[src]
fn add_assign(&mut self, other: &'a Material)
[src]
impl AddAssign<Material> for Material
[src]
fn add_assign(&mut self, other: Material)
[src]
impl Clone for Material
[src]
impl Debug for Material
[src]
impl Default for Material
[src]
impl Display for Material
[src]
impl Eq for Material
[src]
impl Extend<Piece> for Material
[src]
fn extend<T: IntoIterator<Item = Piece>>(&mut self, iter: T)
[src]
fn extend_one(&mut self, item: A)
[src]
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 Hash for Material
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Material> for Material
[src]
impl StructuralEq for Material
[src]
impl StructuralPartialEq for Material
[src]
impl<'a> Sub<&'a Material> for Material
[src]
type Output = Material
The resulting type after applying the -
operator.
fn sub(self, other: &'a Material) -> Material
[src]
impl Sub<Material> for Material
[src]
type Output = Material
The resulting type after applying the -
operator.
fn sub(self, other: Material) -> Material
[src]
impl<'a> SubAssign<&'a Material> for Material
[src]
fn sub_assign(&mut self, other: &'a Material)
[src]
impl SubAssign<Material> for Material
[src]
fn sub_assign(&mut self, other: Material)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,