为什么Rust整数类型即将被废弃?

7

我注意到在Rust标准页面上,与u8i8u16等内容相邻处有一条弃用说明:

enter image description here

发生了什么事情,将会有什么替代品?

1个回答

15

类型本身并没有被弃用,只是名为例如std::i8的模块中包含的常量被弃用。例如,std::i8::MIN将被替换为i8::MIN文档)。弃用通知如下:

Deprecating in a future Rust version: all constants in this module replaced by associated constants on i8

2
值得一提的是,被弃用的确切内容是名为 std::i8 等的 _模块_,其中包含这些常量。 - Kevin Reid

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接