Rustの &[1, 2, 3] と [1, 2, 3].as_ref() は同じなのかなぁ
-
-
なるほど。ありがとうございます。コンパイルエラーで型を見破るの良いですね。
-
Rustはコンパイラのエラーメッセージが(某言語と比べて)読みやすいので,ちょっと型調べてたいときに重宝してます.これがベストな方法なのかは自信ないですが...
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.