Trait legion::Fetch [−][src]
A type which holds onto a slice of entity data retrieved from a single archetype.
Associated Types
type Data
[src]
The inner data representation fetched from the archetype. Typically a slice reference.
Required methods
fn into_components(self) -> Self::Data
[src]
Converts the fetch into the retrieved component slices
fn find<T: 'static>(&self) -> Option<&[T]>
[src]
Tries to find a slice of components, if this fetch contains the requested component type.
fn find_mut<T: 'static>(&mut self) -> Option<&mut [T]>
[src]
Tries to find a mutable slice of components, if this fetch contains the requested component type.
fn version<T: Component>(&self) -> Option<u64>
[src]
Tries to find the component slice version of a component, if this fetch contains the requested component type.
fn accepted(&mut self)
[src]
Indicates that the archetype is going to be provided to the user. Component slice versions are incremented here.