Struct bevy_ecs::system::FunctionSystem [−][src]
pub struct FunctionSystem<In, Out, Param, Marker, F> where
Param: SystemParam, { /* fields omitted */ }
Expand description
The System
counter part of an ordinary function.
You get this by calling IntoSystem::system
on a function that only accepts
SystemParam
s. The output of the system becomes the functions return type, while the input
becomes the functions In
tagged parameter or ()
if no such parameter exists.
Implementations
Trait Implementations
impl<In, Out, Param, Marker, F> System for FunctionSystem<In, Out, Param, Marker, F> where
In: 'static,
Out: 'static,
Param: SystemParam + 'static,
Marker: 'static,
F: SystemParamFunction<In, Out, Param, Marker> + Send + Sync + 'static,
impl<In, Out, Param, Marker, F> System for FunctionSystem<In, Out, Param, Marker, F> where
In: 'static,
Out: 'static,
Param: SystemParam + 'static,
Marker: 'static,
F: SystemParamFunction<In, Out, Param, Marker> + Send + Sync + 'static,
type In = In
type In = In
The system’s input. See In
for
FunctionSystem
s. Read more
type Out = Out
type Out = Out
The system’s output.
Register a new archetype for this system.
Returns the system’s component Access
.
Returns the system’s archetype component Access
.
Runs the system with the given input in the world. Unlike System::run
, this function
takes a shared reference to World
and may therefore break Rust’s aliasing rules, making
it unsafe to call. Read more
Initialize the system.
Auto Trait Implementations
impl<In, Out, Param, Marker, F> RefUnwindSafe for FunctionSystem<In, Out, Param, Marker, F> where
F: RefUnwindSafe,
<<Param as SystemParam>::Fetch as SystemParamState>::Config: RefUnwindSafe,
<Param as SystemParam>::Fetch: RefUnwindSafe,
impl<In, Out, Param, Marker, F> Send for FunctionSystem<In, Out, Param, Marker, F> where
F: Send,
impl<In, Out, Param, Marker, F> Sync for FunctionSystem<In, Out, Param, Marker, F> where
F: Sync,
impl<In, Out, Param, Marker, F> Unpin for FunctionSystem<In, Out, Param, Marker, F> where
F: Unpin,
<<Param as SystemParam>::Fetch as SystemParamState>::Config: Unpin,
<Param as SystemParam>::Fetch: Unpin,
impl<In, Out, Param, Marker, F> UnwindSafe for FunctionSystem<In, Out, Param, Marker, F> where
F: UnwindSafe,
<<Param as SystemParam>::Fetch as SystemParamState>::Config: UnwindSafe,
<Param as SystemParam>::Fetch: UnwindSafe,
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more