1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-11 13:18:43 +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:
Martin Geisler 2023-01-02 10:30:40 +01:00 committed by GitHub
parent b2ae19b5fd
commit b027db0241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,16 @@ The Rust language has two parts:
* **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
what unsafe Rust is.
what Unsafe Rust is.
Unsafe Rust gives you access to five new capabilities:
* Dereference raw pointers.
* Access or modify mutable static variables.
* Access `union` fields.
* Call `unsafe` functions, including `extern` functions
* Call `unsafe` functions, including `extern` functions.
* 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/).