YoVDO

Use the Rust Vec Type for Dynamically Expanding Arrays

Offered By: Trevor Sullivan via YouTube

Tags

Vectors Courses Memory Management Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Heterogeneous Parallel Programming
University of Illinois at Urbana-Champaign via Coursera
Advanced Operating Systems
Georgia Institute of Technology via Udacity
計算機程式設計 (Computer Programming)
National Taiwan University via Coursera
Introduction to Operating Systems
Georgia Institute of Technology via Udacity
Android Performance
Google via Udacity