[][src]Struct quicksilver::geom::Tile

pub struct Tile<T: Clone> {
    pub value: Option<T>,
    pub empty: bool,
}

An individual tile

Fields

value: Option<T>

The value stored in this tile

empty: bool

If the tile is empty from a movement perspective

Methods

impl<T: Clone> Tile<T>[src]

pub fn solid(value: Option<T>) -> Tile<T>[src]

Create a solid version of a tile

pub fn empty(value: Option<T>) -> Tile<T>[src]

Create a non-solid version of a tile

Trait Implementations

impl<T: Clone> Clone for Tile<T>[src]

impl<T: Debug + Clone> Debug for Tile<T>[src]

impl<T: Clone> Serialize for Tile<T> where
    T: Serialize
[src]

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

Auto Trait Implementations

impl<T> Send for Tile<T> where
    T: Send

impl<T> Sync for Tile<T> where
    T: Sync

impl<T> Unpin for Tile<T> where
    T: Unpin

impl<T> UnwindSafe for Tile<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Tile<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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

impl<T> Downcast for T where
    T: Any

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