pub trait IntoSystemSetConfigswhere
Self: Sized,{
// Provided methods
fn in_set(self, set: impl SystemSet) -> SystemSetConfigs { ... }
fn before<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs { ... }
fn after<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs { ... }
fn before_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> SystemSetConfigs { ... }
fn after_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> SystemSetConfigs { ... }
fn run_if<M>(self, condition: impl Condition<M>) -> SystemSetConfigs { ... }
fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs { ... }
fn ambiguous_with_all(self) -> SystemSetConfigs { ... }
fn chain(self) -> SystemSetConfigs { ... }
fn chain_ignore_deferred(self) -> SystemSetConfigs { ... }
}
Expand description
Types that can convert into a SystemSetConfigs
.
Provided Methods§
Sourcefn in_set(self, set: impl SystemSet) -> SystemSetConfigs
fn in_set(self, set: impl SystemSet) -> SystemSetConfigs
Add these system sets to the provided set
.
Sourcefn before<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs
fn before<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs
Runs before all systems in set
. If self
has any systems that produce Commands
or other Deferred
operations, all systems in set
will see their effect.
If automatically inserting apply_deferred
like
this isn’t desired, use before_ignore_deferred
instead.
Sourcefn after<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs
fn after<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs
Runs before all systems in set
. If set
has any systems that produce Commands
or other Deferred
operations, all systems in self
will see their effect.
If automatically inserting apply_deferred
like
this isn’t desired, use after_ignore_deferred
instead.
Sourcefn before_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> SystemSetConfigs
fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> SystemSetConfigs
Run before all systems in set
.
Unlike before
, this will not cause the systems in set
to wait for the
deferred effects of self
to be applied.
Sourcefn after_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> SystemSetConfigs
fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> SystemSetConfigs
Run after all systems in set
.
Unlike after
, this may not see the deferred
effects of systems in set
to be applied.
Sourcefn run_if<M>(self, condition: impl Condition<M>) -> SystemSetConfigs
fn run_if<M>(self, condition: impl Condition<M>) -> SystemSetConfigs
Run the systems in this set(s) only if the Condition
is true
.
The Condition
will be evaluated at most once (per schedule run),
the first time a system in this set(s) prepares to run.
Sourcefn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs
fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> SystemSetConfigs
Suppress warnings and errors that would result from systems in these sets having ambiguities
(conflicting access but indeterminate order) with systems in set
.
Sourcefn ambiguous_with_all(self) -> SystemSetConfigs
fn ambiguous_with_all(self) -> SystemSetConfigs
Suppress warnings and errors that would result from systems in these sets having ambiguities (conflicting access but indeterminate order) with any other system.
Sourcefn chain(self) -> SystemSetConfigs
fn chain(self) -> SystemSetConfigs
Treat this collection as a sequence of system sets.
Ordering constraints will be applied between the successive elements.
Sourcefn chain_ignore_deferred(self) -> SystemSetConfigs
fn chain_ignore_deferred(self) -> SystemSetConfigs
Treat this collection as a sequence of systems.
Ordering constraints will be applied between the successive elements.
Unlike chain
this will not add apply_deferred
on the edges.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
impl<S: IntoSystemSetConfigs> IntoSystemSetConfigs for (S₁, S₂, …, Sₙ)
This trait is implemented for tuples up to 20 items long.