Back to Browse

Implementing Rust's Vec From Scratch

32.5K views
Dec 13, 2020
2:04:02

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

Download

1 formats

Video Formats

360pmp4159.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Implementing Rust's Vec From Scratch | NatokHD