[][src]Struct legion::storage::ComponentSlice

pub struct ComponentSlice<'a, T: Component> { /* fields omitted */ }

An accessor for a shared slice reference of components for a single archetype.

Implementations

impl<'a, T: Component> ComponentSlice<'a, T>[src]

pub fn into_slice(self) -> &'a [T][src]

Converts this slice into its inner value.

Trait Implementations

impl<'a, T: Component> Deref for ComponentSlice<'a, T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<'a, T: Component> Index<ComponentIndex> for ComponentSlice<'a, T>[src]

type Output = T

The returned type after indexing.

impl<'a, T: Component> Into<&'a [T]> for ComponentSlice<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for ComponentSlice<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for ComponentSlice<'a, T>

impl<'a, T> Sync for ComponentSlice<'a, T>

impl<'a, T> Unpin for ComponentSlice<'a, T>

impl<'a, T> UnwindSafe for ComponentSlice<'a, T> where
    T: RefUnwindSafe

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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