Enum bughouse::Color [−][src]
pub enum Color { White, Black, }
Expand description
Represent a color.
Variants
Implementations
Convert a Color
to my backrank, which represents the starting rank
for my pieces.
Convert a Color
to my opponents backrank, which represents the starting rank for the
opponents pieces.
Convert a Color
to my second rank, which represents the starting rank for my pawns.
Convert a Color
to my fourth rank, which represents the rank of my pawns when
moving two squares forward.
Convert a Color
to my seventh rank, which represents the rank before pawn promotion.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more