Expand description
Table positions and bitsets over them.
Seat names one of the four positions at the table (North, East,
South, West) in dealing order. It is the indexing key for the deal
containers in crate::deal, but it is also useful on its own — e.g. as a
dealer tag, as the declarer of a Contract, or as the
leader of a trick. Parses case-insensitively from full names ("North")
or single letters ("N").
SeatFlags is a bitflags bitset over seats with named constants for
the empty and full sets (SeatFlags::EMPTY, SeatFlags::ALL) and the
two partnerships (SeatFlags::NS, SeatFlags::EW). A single Seat
converts into a singleton SeatFlags via From<Seat>.
When the serde feature is enabled, Seat derives Serialize/
Deserialize using the standard enum-variant encoding, and SeatFlags
derives the bitflags crate’s serde encoding.
Structs§
- Parse
Seat Error - Error returned when parsing a
Seatfails - Seat
Flags - A set of seats
Enums§
- Seat
- Position at the table