Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Functions, Scope, and Ownership in Rust

via CodeSignal

Overview

Dive deep into the principles of functions, scope, and ownership in Rust, understanding their crucial role in creating structurally sound and modular code. Develop an understanding of variable ownership and how it impacts memory management within Rust's framework.

Syllabus

  • Lesson 1: Exploring Rust Functions: A Beginner's Guide
    • Brewing Health Potions in Rust
    • Calculating the Average Number of Cakes per Batch in Rust
    • Adding Candles to the Cake Function
    • Rust Bakery: Debugging Cookie Sales Function
    • Calculating the Total Price with Rust Functions
    • Write a Field Area Calculator in Rust
  • Lesson 2: Mastering Variable Shadowing and Scope in Rust Functions
    • Exploring Variable Shadowing and Scope in Rust
    • Enhance Versioning System with Variable Shadowing in Rust
    • Software Version Update Debugger
    • Update the Software Version Function
  • Lesson 3: Understanding Variable References and Mutable References in Rust
    • Buying Apples with Mutable Variables
    • Add a New Coat of Paint Using Mutable References
    • Debug the Wall Repainting Function
    • Interior Designer: Changing Wall Colors in Rust
  • Lesson 4: Variable Ownership and Functions in Rust
    • Transferring Ownership of a String in Rust
    • Adding a New Book to the Library Log in Rust
    • Book Title Transfer in Rust
    • Fix the Book Status Indicator
    • Library Book Management System
  • Lesson 5: Variable References and Borrowing for Function
    • Library Borrowing and Updating Books
    • Library Book Management: Borrowing and Updating Titles
    • Fix the Library System for Book Title Management
    • Fix the Library System
    • Library Book Title Borrowing in Rust

Reviews

Start your review of Functions, Scope, and Ownership in Rust

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.