pub struct SystemFn<D: DriverMode, P, F> { /* private fields */ }Trait Implementations§
source§impl<F, D, T1, T2> System for SystemFn<D, (T1, T2), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
impl<F, D, T1, T2> System for SystemFn<D, (T1, T2), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
type World = (T1, T2)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3> System for SystemFn<D, (T1, T2, T3), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3> System for SystemFn<D, (T1, T2, T3), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
type World = (T1, T2, T3)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4> System for SystemFn<D, (T1, T2, T3, T4), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4> System for SystemFn<D, (T1, T2, T3, T4), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5> System for SystemFn<D, (T1, T2, T3, T4, T5), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5> System for SystemFn<D, (T1, T2, T3, T4, T5), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6> System for SystemFn<D, (T1, T2, T3, T4, T5, T6), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6> System for SystemFn<D, (T1, T2, T3, T4, T5, T6), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6, T7> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6, T7> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6, T7)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6, T7, T8> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T8), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T8),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T8: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6, T7, T8> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T8), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T8),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T8: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6, T7, T8)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10, &'a mut T11),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
T11: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10, &'a mut T11),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
T11: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10, &'a mut T11, &'a mut T12),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
T11: Componentize + Decomponentize + Default,
T12: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10, &'a mut T11, &'a mut T12),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
T11: Componentize + Decomponentize + Default,
T12: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
source§impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10, &'a mut T11, &'a mut T12, &'a mut T13),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
T11: Componentize + Decomponentize + Default,
T12: Componentize + Decomponentize + Default,
T13: Componentize + Decomponentize + Default,
impl<F, D, T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13> System for SystemFn<D, (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13), F>where
F: for<'a> Fn(&'a mut T1, &'a mut T2, &'a mut T3, &'a mut T4, &'a mut T5, &'a mut T6, &'a mut T7, &'a mut T9, &'a mut T10, &'a mut T11, &'a mut T12, &'a mut T13),
D: DriverMode,
T1: Componentize + Decomponentize + Default,
T2: Componentize + Decomponentize + Default,
T3: Componentize + Decomponentize + Default,
T4: Componentize + Decomponentize + Default,
T5: Componentize + Decomponentize + Default,
T6: Componentize + Decomponentize + Default,
T7: Componentize + Decomponentize + Default,
T9: Componentize + Decomponentize + Default,
T10: Componentize + Decomponentize + Default,
T11: Componentize + Decomponentize + Default,
T12: Componentize + Decomponentize + Default,
T13: Componentize + Decomponentize + Default,
type World = (T1, T2, T3, T4, T5, T6, T7, T9, T10, T11, T12, T13)
type Driver = D
fn update(&mut self, world: &mut Self::World)
const MAX_SIZE: usize = <Self::World>::MAX_SIZE
fn init_world(&mut self) -> Self::World
fn pipe<P, R: IntoSystem<P>>(
self,
right: R,
) -> Pipe<Self, R::System<Self::Driver>>where
Self: Sized,
Auto Trait Implementations§
impl<D, P, F> Freeze for SystemFn<D, P, F>where
F: Freeze,
impl<D, P, F> RefUnwindSafe for SystemFn<D, P, F>
impl<D, P, F> Send for SystemFn<D, P, F>
impl<D, P, F> Sync for SystemFn<D, P, F>
impl<D, P, F> Unpin for SystemFn<D, P, F>
impl<D, P, F> UnwindSafe for SystemFn<D, P, F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<S> IntoSystem<()> for Swhere
S: System,
impl<S> IntoSystem<()> for Swhere
S: System,
type System<D: DriverMode> = S
fn into_system<D>(self) -> <S as IntoSystem<()>>::System<D>where
D: DriverMode,
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.