Struct legion::Read [−][src]
pub struct Read<T>(_);
Expand description
Reads a single entity data component type from a chunk.
Trait Implementations
type Filter = EntityFilterTuple<ComponentFilter<T>, Passthrough>
type Filter = EntityFilterTuple<ComponentFilter<T>, Passthrough>
The filter constructed.
Fetches all defined resources, without checking mutability. Read more
type Fetch = ReadFetch<'data, T>
type Fetch = ReadFetch<'data, T>
The fetch type yielded for each archetype.
type Iter = ReadIter<'data, T>
type Iter = ReadIter<'data, T>
The iterator type which pulls entity data out of a world.
type Read = [ComponentTypeId; 1]
type Read = [ComponentTypeId; 1]
Contains the type IDs read by the view.
type Write = [ComponentTypeId; 0]
type Write = [ComponentTypeId; 0]
Contains the type IDs written by the view.
Returns true
if the given component access includes all permissions required by the view.
Returns the component types read by the view.
Returns the component types written to by the view.
Returns a permissions struct declaring the component accesses required by the view.
Auto Trait Implementations
impl<T> RefUnwindSafe for Read<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Read<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more