A first look at unsafe Rust

In this chapter, we will dive deeper into some of the container implementations from the Rust standard library, in particular Vec<T>. Whereas in previous chapters we ignored the hard questions such as "How do we work with uninitialized memory in Rust?", this chapter will explore them in their gory details by focusing on a advanced feature called unsafe: A subset of Rust without many of the guardrails that make Rust code memory-safe.

This chapter explores: