We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 930b932 commit c175894Copy full SHA for c175894
1 file changed
unsafe-rawpointer/raw-pointer.md
@@ -1,6 +1,6 @@
1
# 裸指针
2
3
-**Rust**通过限制智能指针的行为保障了编译时的安全,不过仍需要对指针做一些额外的操作。
+**Rust**通过限制智能指针的行为保障了编译时安全,不过仍需要对指针做一些额外的操作。
4
5
`*const T`和`*mut T`在**Rust**中被称为“裸指针”。它允许别名,允许用来写共享所有权的类型,甚至是内存安全的共享内存类型如:`Rc<T>`和`Arc<T>`,但是赋予你更多权利的同时意味着你需要担当更多的责任:
6
* 不能保证指向有效的内存,甚至不能保证是非空的
0 commit comments