Struct legion::Read[][src]

pub struct Read<T>(_);

Reads a single entity data component type from a chunk.

Trait Implementations

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

impl<T: Copy> Copy for Read<T>[src]

impl<T: Debug> Debug for Read<T>[src]

impl<T> Default for Read<T>[src]

impl<T: Component> DefaultFilter for Read<T>[src]

type Filter = EntityFilterTuple<ComponentFilter<T>, Passthrough>

The filter constructed.

impl<'a, T: Resource> ResourceSet<'a> for Read<T>[src]

type Result = AtomicRef<'a, T>

The resource reference returned during a fetch.

impl<T> Send for Read<T>[src]

impl<T: Sync> Sync for Read<T>[src]

impl<'data, T: Component> View<'data> for Read<T>[src]

type Element = <Self::Fetch as IntoIndexableIter>::Item

The type of component references returned.

type Fetch = ReadFetch<'data, T>

The fetch type yielded for each archetype.

type Iter = ReadIter<'data, T>

The iterator type which pulls entity data out of a world.

type Read = [ComponentTypeId; 1]

Contains the type IDs read by the view.

type Write = [ComponentTypeId; 0]

Contains the type IDs written by the view.

Auto Trait Implementations

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

impl<T> Unpin for Read<T>

impl<T> UnwindSafe for Read<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> Pointable for T

type Init = T

The type for initializers.

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.