【发布时间】:2014-01-03 02:38:29
【问题描述】:
在 Rust 编程语言中 - 我正在尝试将整数转换为字符串表示,所以我写了如下内容:
use std::int::to_str_bytes;
...
to_str_bytes(x, 10);
...但它说我必须指定第三个参数。文档在这里:http://static.rust-lang.org/doc/master/std/int/fn.to_str_bytes.html,但我不够聪明,无法理解它期望的第三个参数。
【问题讨论】:
标签: rust