• Discover
  • Partner with us
  • Chapters
  • Blog

Learn everything about Rust

Why Rust?
✨Connect Your Profile to Open Campus
Cargo
Introduction to Rust syntax
Basic data types and variables
Functions and control flow

Ownership concept
Borrowing and References
Clone Function
Memory safety in Rust
Task: Implement a basic program that uses ownership concepts

Structs
Enums
Simple introduction to Option and Result
Common collections in Rust
Task: Create a simple calculator using enums and pattern matching

Traits
(Advanced) Trait Objects and Box Smart Pointer
Introduction to Generics and its usage in functions
Implementation of Generics using structs and enums in Rust
(Advanced) Lifetimes
Task: Creating a basic banking system using Traits

Introduction to Iterator and its types in Rust
Understanding the usage of Iterators with loops
(Advanced) Closures
Modules and visibility
Task: Building a Custom Filtering Function in Rust

Panic! macro
Error handling
Creating and using custom error types
Task: Adding error handling to the basic banking system

Final project

Task Details

In this task, students will create a simple Rust program that demonstrates the concepts of ownership, borrowing, and references. The program will take two strings as input, concatenate them, and then print the result without violating any ownership rules.

Steps

  1. Create a function called concatenate_strings that takes two string slices as arguments and returns a new String as the result of concatenating the two input strings.
  2. Inside the concatenate_strings function, create a new String called result. Use the push_str() method to append the contents of the first input string slice, followed by the second input string slice.
  3. Return the result string from the function.
  4. In the main function, create two String variables, string1 and string2, and initialize them with appropriate values.
  5. Call the concatenate_strings function with references to string1 and string2 as arguments (using string slices). Store the result in a new variable called concatenated_string.
  6. Print the concatenated_string variable to the console.
  7. Compile and run the program to ensure it works as expected.

Checklist

  1. Write the concatenate_strings function signature.
  2. Implement the concatenate_strings function.
  3. Initialize two String variables in the main function.
  4. Call the concatenate_strings function with string slices of the variables.
  5. Print the result to the console.
  6. Compile and run the program to test its functionality.

Task

Submit your work to complete this lesson.

Join the project workspace to share your solution and receive feedback.

Previous
Next

Lesson discussion

Swap insights and ask questions about “Learn everything about Rust”.

Enroll to participate
Start the course to unlock the discussion. Enrolling helps us keep conversations relevant to learners.
WebsiteDiscoverPartner with UsBlogEvents
CoursesCircleRustSoliditySolanaWeb3 FundamentalsBlockchain Basics
CompanyAbout UsBrand GuidelineFAQsTerms of UsePrivacy PolicyGDPR NoticeCookies
Don't miss any update!

Disclaimer: The information, programs, and events provided on https://risein.com is strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice, nor do we make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://risein.com disclaims any responsibility for financial decisions made by users based on the information provided here.

© 2026 Rise In, All rights reserved