回答編集履歴

1

追記

2019/09/29 13:09

投稿

meg_
meg_

スコア10583

test CHANGED
@@ -1 +1,11 @@
1
1
  [Rust Documentation 型間のキャスト](https://doc.rust-jp.rs/the-rust-programming-language-ja/1.6/book/casting-between-types.html)
2
+
3
+
4
+
5
+ let x: i32 = 5;
6
+
7
+ let y = x as i64;
8
+
9
+
10
+
11
+ 上記例が載っていました。