Enum pgn_reader::Role [−][src]
pub enum Role {
Pawn,
Knight,
Bishop,
Rook,
Queen,
King,
}Piece types: Pawn, Knight, Bishop, Rook, Queen, King.
Variants
PawnKnightBishopRookQueenKing
Methods
impl Role[src]
impl Rolepub fn from_char(ch: char) -> Option<Role>[src]
pub fn from_char(ch: char) -> Option<Role>pub fn of(self, color: Color) -> Piece[src]
pub fn of(self, color: Color) -> Piecepub fn char(self) -> char[src]
pub fn char(self) -> charpub fn upper_char(self) -> char[src]
pub fn upper_char(self) -> charTrait Implementations
impl PartialOrd<Role> for Role[src]
impl PartialOrd<Role> for Rolefn partial_cmp(&self, other: &Role) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Role) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Clone for Role[src]
impl Clone for Rolefn clone(&self) -> Role[src]
fn clone(&self) -> RoleReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Role[src]
impl Debug for Rolefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Ord for Role[src]
impl Ord for Rolefn cmp(&self, other: &Role) -> Ordering[src]
fn cmp(&self, other: &Role) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl From<Role> for i128[src]
impl From<Role> for i128impl From<Role> for i8[src]
impl From<Role> for i8impl From<Role> for u32[src]
impl From<Role> for u32impl From<Role> for u8[src]
impl From<Role> for u8impl From<Role> for i64[src]
impl From<Role> for i64impl From<Role> for u16[src]
impl From<Role> for u16impl From<Role> for usize[src]
impl From<Role> for usizeimpl From<Role> for i16[src]
impl From<Role> for i16impl From<Role> for i32[src]
impl From<Role> for i32impl From<Role> for isize[src]
impl From<Role> for isizeimpl From<Role> for u128[src]
impl From<Role> for u128impl From<Role> for u64[src]
impl From<Role> for u64impl Copy for Role[src]
impl Copy for Roleimpl Eq for Role[src]
impl Eq for Roleimpl PartialEq<Role> for Role[src]
impl PartialEq<Role> for Role