且构网

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

是否可以使用变量作为格式的fill参数!宏?

更新时间:2023-01-29 20:31:32

不幸的是,没有内置方法可以做到这一点.

Unfortunately there is no built-in way to do this.

格式化语法是由早期Rust使用者采用的功能演变而来的.简洁意味着新功能在事实之后很难添加.

The formatting syntax evolved with features that early Rust adopters needed at the time. Its terseness means that new features are very difficult to add after the fact.