Skip to main content

IntoSystem

Trait IntoSystem 

Source
pub trait IntoSystem<Params> {
    // Required method
    fn into_system(self, name: &'static str) -> Box<dyn System>;
}
Expand description

Converts a compatible function into a boxed System.

Implemented for parameterized functions fn(P0, P1, ...) where each P is a SystemParam.

Required Methods§

Source

fn into_system(self, name: &'static str) -> Box<dyn System>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static, P6: SystemParam + 'static, P7: SystemParam + 'static> IntoSystem<(P0, P1, P2, P3, P4, P5, P6, P7)> for Func
where Func: SystemParamFunction<(P0, P1, P2, P3, P4, P5, P6, P7)>,

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static, P6: SystemParam + 'static> IntoSystem<(P0, P1, P2, P3, P4, P5, P6)> for Func
where Func: SystemParamFunction<(P0, P1, P2, P3, P4, P5, P6)>,

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static, P5: SystemParam + 'static> IntoSystem<(P0, P1, P2, P3, P4, P5)> for Func
where Func: SystemParamFunction<(P0, P1, P2, P3, P4, P5)>,

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static, P4: SystemParam + 'static> IntoSystem<(P0, P1, P2, P3, P4)> for Func
where Func: SystemParamFunction<(P0, P1, P2, P3, P4)>,

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static, P3: SystemParam + 'static> IntoSystem<(P0, P1, P2, P3)> for Func
where Func: SystemParamFunction<(P0, P1, P2, P3)>,

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static, P2: SystemParam + 'static> IntoSystem<(P0, P1, P2)> for Func
where Func: SystemParamFunction<(P0, P1, P2)>,

Source§

impl<Func, P0: SystemParam + 'static, P1: SystemParam + 'static> IntoSystem<(P0, P1)> for Func
where Func: SystemParamFunction<(P0, P1)>,

Source§

impl<Func, P0: SystemParam + 'static> IntoSystem<(P0,)> for Func
where Func: SystemParamFunction<(P0,)>,

Source§

impl<Func> IntoSystem<()> for Func
where Func: SystemParamFunction<()>,