最佳答案
How can I create a function with a variable number of arguments in Rust?
Like this Java code:
void foo(String... args) {
for (String arg : args) {
System.out.println(arg);
}
}