[][src]Struct arcs::components::Layer

pub struct Layer {
    pub z_level: usize,
    pub visible: bool,
}

A logical grouping of data, assembled as though each Layer were laid out on transparent acetate overlays.

Fields

z_level: usize

The z-coordinate. Lower z-levels will be drawn above higher z-levels.

visible: bool

Should entities on this layer be displayed?

Implementations

impl Layer[src]

pub fn create(builder: EntityBuilder, name: Name, layer: Layer) -> Entity[src]

Trait Implementations

impl Clone for Layer[src]

impl Component for Layer[src]

type Storage = HashMapStorage<Self>

Associated storage type for this component.

impl Debug for Layer[src]

impl Default for Layer[src]

impl Eq for Layer[src]

impl Hash for Layer[src]

impl PartialEq<Layer> for Layer[src]

impl StructuralEq for Layer[src]

impl StructuralPartialEq 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> Any for T where
    T: Any
[src]

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

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

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]

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

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

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default
[src]

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.