Talk Rust 11: Rust Standard Libraries

PrimerPy
5 min readApr 11, 2024

In this article, I will review some common data types defined in Rust standard libraries.

Box: A Smarter Pointer

Box<T> is used to point data on the heap (instead of the stack). It’s very similar to the smart pointer in C++. When a Box is out of the scope, the destructor function will be invoked, internal objects will be destroyed and the memory on heap will…

--

--

PrimerPy

www.primerpy.com | A Primer on Python. I'm a veteran Data and Web developer based out of NYC and DC area. I blog mainly on Python and other tech related topics.