#Some trouble adding a generic system to a schedule.

5 messages · Page 1 of 1 (latest)

tame lotus
#

this is my understanding of the bounds so it's kinda confusing me

  • IntoSystemConfigs<M> is implemented for all F that implement IntoSystem<(), (), M>.
  • IntoSystem<(), (), M> is implemented for all SystemParamFunction<M> and ExclusiveSystemParamFunction<M> types in the same way.
  • SystemParamFunction<M> and ExclusiveSystemParamFunction<M> are both implemented for FnMut(..) -> Out in the same way, except the exclusive version is implemented for FnMut(&mut World, ..) -> Out.
#

bevy version 0.13

teal ocean
#

That P is not a valid system type

tame lotus
#

sorry I've solved it. I probably shouldn't have simplified it in my example, but the P was actually an associated type (like P::Param) and it was marked as static in this function's where clause. however, the trait itself was not static so the FnMut was not static and therefore not implemented for SystemParamFunction

teal ocean