Trait bones_framework::prelude::IntoSystem
source · pub trait IntoSystem<Args, In, Out> {
type Sys: System<In, Out>;
// Required method
fn system(self) -> Self::Sys;
}
Expand description
Converts a function into a System
.
IntoSystem
is automatically implemented for all functions and closures that:
- Have 26 or less arguments,
- Where every argument implments
SystemParam
, and
The most common SystemParam
types that you will use as arguments to a system will be: