pub enum GameStatus {
Playing,
Won,
}Expand description
The current status of the game.
Variants§
Playing
The puzzle is not yet solved.
Won
Every number’s two endpoints are connected by a drawn path. Cells no
path ends up using don’t matter — filling the whole board was never
required, only connecting each pair (blocked cells remain real
obstacles no path may enter, they just aren’t also required to be
used by someone). Puzzles built via NumberlinkGame::random are
generated with a best-effort (not provable) uniqueness check, so this
is usually the solution, not guaranteed to be; puzzles built via
NumberlinkGame::from_endpoints have no such guarantee at all.
Trait Implementations§
Source§impl Clone for GameStatus
impl Clone for GameStatus
impl Copy for GameStatus
Source§impl Debug for GameStatus
impl Debug for GameStatus
impl Eq for GameStatus
Source§impl PartialEq for GameStatus
impl PartialEq for GameStatus
impl StructuralPartialEq for GameStatus
Auto Trait Implementations§
impl Freeze for GameStatus
impl RefUnwindSafe for GameStatus
impl Send for GameStatus
impl Sync for GameStatus
impl Unpin for GameStatus
impl UnsafeUnpin for GameStatus
impl UnwindSafe for GameStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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