pub struct WaitSet {
pub waiting_tiles: TileMask34,
pub regular: Vec<RegularWait>,
pub irregular: Option<IrregularWait>,
}Expand description
All the ways a player’s closed hand can be considered waiting, regular and/or irregular.
§Optional serde support
Serialization only. Straightforward struct mapping of fields.
Fields§
§waiting_tiles: TileMask34The set of all waiting tiles in all different ways of waiting.
regular: Vec<RegularWait>Regular waiting patterns (groups and a pair).
irregular: Option<IrregularWait>Irregular waiting pattern (seven pairs, thirteen orphans).
Implementations§
Source§impl WaitSet
impl WaitSet
pub fn from_keys(decomposer: &mut Decomposer<'_>, keys: &[u32; 4]) -> Self
pub fn from_tile_set( decomposer: &mut Decomposer<'_>, tile_set: &TileSet34, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitSet
impl RefUnwindSafe for WaitSet
impl Send for WaitSet
impl Sync for WaitSet
impl Unpin for WaitSet
impl UnwindSafe for WaitSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more