Skip to content

Why is it possible to pass a function as parameter to the add_system() function? #4142

Answered by bjorn3
Koettlitz asked this question in Q&A
Discussion options

You must be logged in to vote

There is a impl<Params, S> IntoSystemDescriptor<Params> for S where S: IntoSystem<(), (), Params> implementation. IntoSystem is implemented for all types implementing SystemParamFunction which is implemented for functions.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Koettlitz
Comment options

@bjorn3
Comment options

bjorn3 Mar 7, 2022
Collaborator

@Koettlitz
Comment options

@bjorn3
Comment options

bjorn3 Mar 8, 2022
Collaborator

Answer selected by Koettlitz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants