You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-17 06:37:34 +02:00
Add back links to the Rust Book
I think it's important that we link the students to the full information about Unsafe Rust.
This commit is contained in:
@ -6,13 +6,16 @@ The Rust language has two parts:
|
|||||||
* **Unsafe Rust:** can trigger undefined behavior if preconditions are violated.
|
* **Unsafe Rust:** can trigger undefined behavior if preconditions are violated.
|
||||||
|
|
||||||
We will be seeing mostly safe Rust in this course, but it's important to know
|
We will be seeing mostly safe Rust in this course, but it's important to know
|
||||||
what unsafe Rust is.
|
what Unsafe Rust is.
|
||||||
|
|
||||||
Unsafe Rust gives you access to five new capabilities:
|
Unsafe Rust gives you access to five new capabilities:
|
||||||
|
|
||||||
* Dereference raw pointers.
|
* Dereference raw pointers.
|
||||||
* Access or modify mutable static variables.
|
* Access or modify mutable static variables.
|
||||||
* Access `union` fields.
|
* Access `union` fields.
|
||||||
* Call `unsafe` functions, including `extern` functions
|
* Call `unsafe` functions, including `extern` functions.
|
||||||
* Implement `unsafe` traits.
|
* Implement `unsafe` traits.
|
||||||
|
|
||||||
|
We will briefly cover these capabilities next. For full details, please see
|
||||||
|
[Chapter 19.1 in the Rust Book](https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html)
|
||||||
|
and the [Rustonomicon](https://doc.rust-lang.org/nomicon/).
|
||||||
|
Reference in New Issue
Block a user