Перейти к содержимому

Writing Unsafe Rust

Let's Get Rusty

0:00 / 0:00

Writing Unsafe Rust

36 427 просмотров · 4 года назад
Let's Get Rusty
173 тыс. подписчиков
36 427 просмотров · 4 года назад
Join our Rust Live Accelerator waitlist (free Rust Job-Ready Roadmap inside): https://letsgetrusty.com/join Let’s Get Rusty is the #1 Rust education & career development platform for engineers who want real-world skills and results. We combine a structured curriculum, industry-grade projects, expert review and feedback, and our Rust recruiter network — to help you master Rust and get hired. · The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter. 📝 Get your FREE Rust cheat sheet: https://letsgetrusty.com/cheatsheet The Rust book: https://doc.rust-lang.org/stable/book/​​ Chapters: 0:00​ Intro 0:27 Unsafe Superpowers 2:32 Dereferencing a Raw Pointer 5:46 Calling Unsafe Function or Method 6:49 Creating a Safe Abstraction 10:35 extern Functions to Call External Code 12:09 Accessing or Modifying Mutable Static Variable 14:02 Implementing an Unsafe Trait 14:19 Accessing Fields of a Union 14:41 When to Use Unsafe Code 14:52 Outro #letsgetrusty​​ #rust​lang​ #tutorial