Trait SystemFn

Source
pub trait SystemFn<R, Q>
where R: ResourceSet<'static>, Q: QuerySet,
{ // Required method fn run( &mut self, commands: &mut CommandBuffer, world: &mut SubWorld<'_>, resources: &mut <R as ResourceSet<'static>>::Result, queries: &mut Q, ); }
Expand description

A function which can provide the body of a system.

Required Methods§

Source

fn run( &mut self, commands: &mut CommandBuffer, world: &mut SubWorld<'_>, resources: &mut <R as ResourceSet<'static>>::Result, queries: &mut Q, )

Runs the system body.

Implementors§

Source§

impl<F, R, Q> SystemFn<R, Q> for F
where R: ResourceSet<'static>, Q: QuerySet, F: FnMut(&mut CommandBuffer, &mut SubWorld<'_>, &mut <R as ResourceSet<'static>>::Result, &mut Q) + 'static,