pub trait IntoSystem<Marker> {
type System: System;
// Required method
fn into_system(self) -> Self::System;
}Expand description
Converts a function (or closure) with valid system parameters into a
System that can be registered with App::add_system.
Implemented via the [impl_system!] macro for function arities 0–8.
Required Associated Types§
Required Methods§
fn into_system(self) -> Self::System
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".