[][src]Enum sweeper::Flag

pub enum Flag<Cf> {
    NotFlagged,
    Flagged,
    Custom(Cf),
}

Represents the state of a flag on a closed tile.

Variants

NotFlagged

The player didn't mark this tile yet.

Returned by the Default trait implementation.

Flagged

The player is absolutely sure that the tile this flag is applied to contains a mine.

Custom(Cf)

A nonstandard flag type, as specified by the generic argument.

Trait Implementations

impl<Cf: Clone> Clone for Flag<Cf>[src]

impl<Cf: Copy> Copy for Flag<Cf>[src]

impl<Cf: Debug> Debug for Flag<Cf>[src]

impl<Cf> Default for Flag<Cf>[src]

fn default() -> Self[src]

Returns the NotFlagged state.

impl<'de, Cf> Deserialize<'de> for Flag<Cf> where
    Cf: Deserialize<'de>, 
[src]

impl<Cf: Eq> Eq for Flag<Cf>[src]

impl<Cf> From<Cf> for Flag<Cf>[src]

fn from(op: Cf) -> Self[src]

Returns the custom flag state with the specified value.

impl<Cf: PartialEq> PartialEq<Flag<Cf>> for Flag<Cf>[src]

impl<Cf> Serialize for Flag<Cf> where
    Cf: Serialize
[src]

impl<Cf> StructuralEq for Flag<Cf>[src]

impl<Cf> StructuralPartialEq for Flag<Cf>[src]

Auto Trait Implementations

impl<Cf> RefUnwindSafe for Flag<Cf> where
    Cf: RefUnwindSafe

impl<Cf> Send for Flag<Cf> where
    Cf: Send

impl<Cf> Sync for Flag<Cf> where
    Cf: Sync

impl<Cf> Unpin for Flag<Cf> where
    Cf: Unpin

impl<Cf> UnwindSafe for Flag<Cf> where
    Cf: UnwindSafe

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<!> for T[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>,