[][src]Enum sweeper::ClickOutcome

pub enum ClickOutcome {
    Nothing,
    OpenClearing,
    OpenNumber(NonZeroU8),
    Chord,
    Explosion,
}

The event produced after clicking a tile.

Variants

Nothing

Nothing happens.

Produced when an empty tile without a number is clicked.

OpenClearing

A clearing is opened. A clearing of only one empty numberless tile is still a clearing.

Cannot be obtained from a single Tile, since it requires knowing about surrounding tiles.

OpenNumber(NonZeroU8)

An empty tile with a number is opened.

Cannot be obtained from a single Tile, since it requires knowing about surrounding tiles.

Chord

A chord operation is invoked.

Obtained from an OpenNumber tile.

Explosion

An explosion is triggered, ending the game.

Obtained from a Mine.

Trait Implementations

impl Clone for ClickOutcome[src]

impl Copy for ClickOutcome[src]

impl Debug for ClickOutcome[src]

impl Default for ClickOutcome[src]

fn default() -> Self[src]

Returns the Nothing variant.

impl<'de> Deserialize<'de> for ClickOutcome[src]

impl Eq for ClickOutcome[src]

impl PartialEq<ClickOutcome> for ClickOutcome[src]

impl Serialize for ClickOutcome[src]

impl StructuralEq for ClickOutcome[src]

impl StructuralPartialEq for ClickOutcome[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,