Packt
Advanced Rust – Lifetimes, Iterators, Testing & Randomness

Discover new skills with 30% off courses from industry experts. Save now.

Packt

Advanced Rust – Lifetimes, Iterators, Testing & Randomness

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

3 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

3 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Understand and apply lifetimes in Rust for memory safety.

  • Master iterators and their methods to efficiently handle collections.

  • Write comprehensive tests and apply Test-Driven Development (TDD) in Rust.

  • Integrate randomness and work with time using the rand and chrono crates.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

August 2025

Assessments

9 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the Learn to Code with Rust Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 8 modules in this course

In this module, we will dive deep into Rust's lifetime system, exploring concrete lifetimes, non-lexical lifetimes, and their application in function parameters and structs. You’ll also learn how to avoid invalid lifetimes and reinforce your understanding with practical examples.

What's included

19 videos2 readings1 assignment1 plugin

In this module, we will cover closures in Rust, from their basic syntax to more advanced usage, including capturing references, ownership, and using traits like Fn and FnMut. You will practice using closures in real-world scenarios through a project.

What's included

16 videos1 assignment1 plugin

In this module, we will explore Rust’s powerful iteration system, including iterator methods for transforming, filtering, and reducing data. You will practice iterating over various data structures and solving problems through hands-on projects.

What's included

39 videos1 assignment1 plugin

In this module, we will explore how to write tests in Rust, covering unit and integration tests, assertion macros, and advanced techniques like TDD and dependency injection. You will practice writing and running tests to ensure your code is robust and reliable.

What's included

24 videos1 assignment1 plugin

In this module, we will introduce the rand crate, teaching you how to generate random numbers and manipulate data randomly in Rust. You’ll get hands-on experience applying randomness to a project, reinforcing your understanding of Rust's randomness capabilities.

What's included

5 videos1 assignment1 plugin

In this module, we will explore the chrono crate for handling date and time in Rust. You’ll learn to work with NaiveDate, DateTime, and TimeDelta, manipulating and formatting time and converting between timezones. By the end of the module, you’ll be ready to implement date and time logic in your applications.

What's included

10 videos1 assignment1 plugin

In this module, we will introduce the regex crate for powerful pattern matching in Rust. You’ll learn to search, extract, and replace text using regular expressions, and explore advanced features like anchors, capture groups, and more. By the end of this module, you’ll be able to apply regular expressions to solve real-world problems efficiently.

What's included

16 videos1 assignment1 plugin

In this module, we’ll congratulate you on your hard work and accomplishments in mastering advanced Rust topics. You’ll review the journey from lifetimes and closures to testing and randomness, solidifying your skills for continued growth in Rust programming.

What's included

1 video1 reading2 assignments

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Packt - Course Instructors
Packt
850 Courses186,880 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions