且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Rust 的一行中为多个变量分配一个值?

更新时间:2023-08-28 19:57:52

不,没有等价物.是的,您必须编写多项作业,或者编写一个本身进行多项作业的宏.

No, there is no equivalent. Yes, you have to write multiple assignments, or write a macro which itself does multiple assignments.