pub trait IntoSystem<Marker>: SealedSystem<Marker> { }Expand description
A function that can be added to a Schedule as a system.
Implemented for functions (and closures) of up to 8 SystemParams returning a
SystemOutput; Marker only tells the implementations apart. The trait is sealed.
use pragma_ecs::{IntoSystem, Res, View};
struct Speed(f32);
fn movement(_: View<&mut f32>, _: Res<Speed>) {}
fn assert_system<M>(_: impl IntoSystem<M>) {}
assert_system(movement);Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".