// 如何转换i32为u32 ?
fn main() {
let x = 5;
let y = x as u32;
// 更多转换, 参考这里:
// http://carols10cents.github.io/rust-conversion-reference/
}
// 如何转换i32为u32 ?
fn main() {
let x = 5;
let y = x as u32;
// 更多转换, 参考这里:
// http://carols10cents.github.io/rust-conversion-reference/
}
本文标题:rust--如何将i32转为u32?
本文链接:https://www.haomeiwen.com/subject/cujswftx.html
网友评论