Book Image

Ultimate Rust Crash Course [Video]

By : Nathan Stocks
Book Image

Ultimate Rust Crash Course [Video]

By: Nathan Stocks

Overview of this book

Are you in awe of how Rust systematically eliminates entire classes of bugs and security vulnerabilities and are looking to take your first step toward understanding this diverse yet fun programming language? This video course will get you started with Rust and teach you how to write high-performance code without worrying about crashes. The course starts with the background and origin of Rust and explains why it is a great programming language. Next, you’ll explore the fundamental concepts of Rust such as cargo, variables, and functions, and get a walkthrough of Rust’s primitive types and control flow. Moving ahead, you’ll cover essential aspects of Rust, including ownership and borrowing with the help of interesting examples. Later, you’ll get to grips with structs, traits, collections, and enums. Toward the end, you’ll work through exercises to learn about closures and threads, and a project name Invader to get hands-on experience. By the end of this course, you’ll be well-versed with Rust programming fundamentals and have the skills you need to write error-free code. All code for this course is available on our GitHub repository - https://github.com/PacktPublishing/Ultimate-Rust-Crash-Course
Table of Contents (8 chapters)
Chapter 7
Project – Invaders
Content Locked
Section 6
Invaders Part 6 – Winning and Losing
In this video, you’ll Add methods on the Invaders struct to detect win and loss conditions, add a method on the Invaders struct to attempt to kill an alien, wire the player up to attempting to shoot aliens with his shots, wire the player up to shooting aliens and detect our win and loss conditions, and test your game!