Ok, I know it is not really a variadic function, but I do not know how to specify it more clearly in the title.
Both Actix-web (Route::to) and Bevy (App::add_system) have functions which accept a variable number of arguments. I would very much like to know:
- how is this (Rust) design pattern called?
- how does it work? For example, how does Actix-web 'know' that
tohas been passed a function with aQueryand perhaps aPathtype?
All I could find out is that the function should implement a type (Handler<>/InfoSystemDescriptor<>), but in the case of Handler<>, only tuples implement it.