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

Implementing Rust's Vec From Scratch

Ryan Levick

0:00 / 0:00

Implementing Rust's Vec From Scratch

33 555 просмотров · 5 лет назад
Ryan Levick
14,3 тыс. подписчиков
33 555 просмотров · 5 лет назад
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/lifetim...