Rust 程序设计语言(第一版) 简体中文版

Updated 5 months ago

Leo Liu (@leo-liu) started discussion #56

2 years ago · 0 comments


在运行时,指向一份相同数据的裸指针*和引用有相同的表现。事实上,在安全代码中&T引用会隐式的转换为一个*const T同时它们的mut变体也有类似的行为(这两种转换都可以显式执行,分别为value as *const T和value as *mut T)。

4.35.裸指针 (Edit this file)

“表现” => “表示”,这里 representation 指内部表示。

No description provided.

No comments on this discussion.

to join this conversation on GitBook. Already have an account? Sign in to comment

You’re not receiving notifications from this thread.

1 participant