[][src]Enum ogmo3::level::Layer

pub enum Layer {
    Tile(TileLayer),
    TileCoords(TileCoordsLayer),
    Grid(GridLayer),
    Entity(EntityLayer),
    Decal(DecalLayer),
}

A layer instance.

Variants

Tile(TileLayer)

A tile layer.

TileCoords(TileCoordsLayer)

A tile co-ords layer.

Grid(GridLayer)

A grid layer.

Entity(EntityLayer)

An entity layer.

Decal(DecalLayer)

A decal layer.

Implementations

impl Layer[src]

pub fn name(&self) -> &str[src]

Gets the name of the layer.

Trait Implementations

impl Clone for Layer[src]

impl Debug for Layer[src]

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

impl Serialize for Layer[src]

Auto Trait Implementations

impl RefUnwindSafe for Layer

impl Send for Layer

impl Sync for Layer

impl Unpin for Layer

impl UnwindSafe for Layer

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.