Tyree  Becker

Tyree Becker


Implementing Rust's Vec From Scratch

In this stream, we implement a limited version of Rust’s Vec type from scratch. In doing so, we learn a lot about unsafe Rust. This stream is geared towards those with at least intermediate experience in Rust, but beginners should also learn more about how Rust’s memory model works.

Note: This is just a learning exercise! The standard library’s Vec is great, and you should just use that.

The resource on covariance I mention in the stream can be found here: https://github.com/sunshowers/lifetime-variance-example

#rust #vec #scratch

Implementing Rust's Vec From Scratch