Skip to main content

IntoSystem

Trait IntoSystem 

Source
pub trait IntoSystem<Input> {
    type System: System;

    // Required method
    fn into_system(self) -> Self::System;
}

Required Associated Types§

Required Methods§

Source

fn into_system(self) -> Self::System

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> IntoSystem<()> for F
where F: Send + FnMut(), &'a mut F: for<'a, 'b> FnMut(),

Source§

impl<F, F0> IntoSystem<(F0,)> for F
where F: Send + FnMut(F0), F0: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1> IntoSystem<(F0, F1)> for F
where F: FnMut(F0, F1) + Send, F0: SystemParam, F1: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2> IntoSystem<(F0, F1, F2)> for F
where F: FnMut(F0, F1, F2) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3> IntoSystem<(F0, F1, F2, F3)> for F
where F: FnMut(F0, F1, F2, F3) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4> IntoSystem<(F0, F1, F2, F3, F4)> for F
where F: FnMut(F0, F1, F2, F3, F4) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5> IntoSystem<(F0, F1, F2, F3, F4, F5)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6> IntoSystem<(F0, F1, F2, F3, F4, F5, F6)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>, <F10 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>, <F10 as SystemParam>::Item<'b>, <F11 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>, <F10 as SystemParam>::Item<'b>, <F11 as SystemParam>::Item<'b>, <F12 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>, <F10 as SystemParam>::Item<'b>, <F11 as SystemParam>::Item<'b>, <F12 as SystemParam>::Item<'b>, <F13 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, F14: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>, <F10 as SystemParam>::Item<'b>, <F11 as SystemParam>::Item<'b>, <F12 as SystemParam>::Item<'b>, <F13 as SystemParam>::Item<'b>, <F14 as SystemParam>::Item<'b>),

Source§

impl<F, F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15> IntoSystem<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15)> for F
where F: FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) + Send, F0: SystemParam, F1: SystemParam, F2: SystemParam, F3: SystemParam, F4: SystemParam, F5: SystemParam, F6: SystemParam, F7: SystemParam, F8: SystemParam, F9: SystemParam, F10: SystemParam, F11: SystemParam, F12: SystemParam, F13: SystemParam, F14: SystemParam, F15: SystemParam, &'a mut F: for<'a, 'b> FnMut(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15) + for<'a, 'b> FnMut(<F0 as SystemParam>::Item<'b>, <F1 as SystemParam>::Item<'b>, <F2 as SystemParam>::Item<'b>, <F3 as SystemParam>::Item<'b>, <F4 as SystemParam>::Item<'b>, <F5 as SystemParam>::Item<'b>, <F6 as SystemParam>::Item<'b>, <F7 as SystemParam>::Item<'b>, <F8 as SystemParam>::Item<'b>, <F9 as SystemParam>::Item<'b>, <F10 as SystemParam>::Item<'b>, <F11 as SystemParam>::Item<'b>, <F12 as SystemParam>::Item<'b>, <F13 as SystemParam>::Item<'b>, <F14 as SystemParam>::Item<'b>, <F15 as SystemParam>::Item<'b>),