小编Lir*_*rux的帖子

如何在 Rust 中使用任意文本作为函数名?

Rust 有没有办法使用任何文本作为函数名?就像是:

fn 'This is the name of the function'  { ... } 
Run Code Online (Sandbox Code Playgroud)

我发现它对测试功能很有用,其他语言也允许这样做。

rust

2
推荐指数
2
解决办法
286
查看次数

标签 统计

rust ×1