You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raw pointer:Rust语言中存在的两个裸指针即const T 和mut T,裸指针可以为null。在Rust语言中对裸指针的创建是安全safe的,而对裸指针的读写是不安全unsafe的。裸指针又可以分为可变、不可变,分别写作 *mut T 和 *const T,这里的 T 表示指针指向的具体类型,裸指针本身的的类型大小与 usize一致。
The text was updated successfully, but these errors were encountered:
raw pointer:Rust语言中存在的两个裸指针即const T 和mut T,裸指针可以为null。在Rust语言中对裸指针的创建是安全safe的,而对裸指针的读写是不安全unsafe的。裸指针又可以分为可变、不可变,分别写作 *mut T 和 *const T,这里的 T 表示指针指向的具体类型,裸指针本身的的类型大小与 usize一致。
The text was updated successfully, but these errors were encountered: