Use the Rust Vec Type for Dynamically Expanding Arrays
Offered By: Trevor Sullivan via YouTube
Course Description
Overview
Explore the Rust Vec type for dynamically-sized arrays in this 45-minute video tutorial. Learn how to use the vec! macro for instantiation, add items with .push(), join Vecs using .append(), remove items with .remove(), and manage memory with .reserve(). Discover methods like .len() and .capacity() for monitoring Vec size and capacity. Gain practical knowledge through examples of creating vectors, indexing, working with custom data types, and manipulating vector contents. Access additional resources including the Rust Vec Type Reference and official documentation to deepen your understanding of this essential Rust data structure.
Syllabus
Introduction
Rust Programming Tutorial Playlist
Working with Vectors
Creating a Vector
Testing the Vector
Indexing the Vector
Indexing a Range
Instantiating Vec from a String
Creating a Custom Data Type
Running the Code
Append Items from Second Vec
Append Method
Append Example
Insert Example
BTOP
Taught by
Trevor Sullivan
Related Courses
Coding the Matrix: Linear Algebra through Computer Science ApplicationsBrown University via Coursera Çok değişkenli Fonksiyon I: Kavramlar / Multivariable Calculus I: Concepts
Koç University via Coursera Data Structures and Algorithm Design Part I | 数据结构与算法设计(上)
Tsinghua University via edX Massively Multivariable Open Online Calculus Course
Ohio State University via Coursera Introduction to R for Data Science
Microsoft via edX