Struct specs::FetchArg
[−]
[src]
pub struct FetchArg<'a>(_);
System fetch-time argument. The fetch is executed at the start of the run.
It contains a subset of World
methods that make sense during initialization.
Methods
impl<'a> FetchArg<'a>
[src]
fn read<T: Component>(&self) -> RwLockReadGuard<'a, T::Storage>
Locks a Component
for reading.
fn write<T: Component>(&self) -> RwLockWriteGuard<'a, T::Storage>
Locks a Component
for writing.
fn entities(self) -> EntityIter<'a>
Returns the entity iterator.