Struct shakmaty::MaterialSide [−][src]
pub struct MaterialSide {
pub pawns: u8,
pub knights: u8,
pub bishops: u8,
pub rooks: u8,
pub queens: u8,
pub kings: u8,
}
Expand description
The material configuration of one side.
Fields
pawns: u8
knights: u8
bishops: u8
rooks: u8
queens: u8
kings: u8
Implementations
Trait Implementations
type Output = MaterialSide
type Output = MaterialSide
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = MaterialSide
type Output = MaterialSide
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Returns the “default value” for a type. Read more
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
type Err = ParseMaterialError
type Err = ParseMaterialError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Output = MaterialSide
type Output = MaterialSide
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = MaterialSide
type Output = MaterialSide
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for MaterialSide
impl Send for MaterialSide
impl Sync for MaterialSide
impl Unpin for MaterialSide
impl UnwindSafe for MaterialSide
Blanket Implementations
Mutably borrows from an owned value. Read more