8411  Reviews star_rate star_rate star_rate star_rate star_half

Rust for Python Developers

This Rust training course teaches Python developers how to master the Rust programming language by leveraging their knowledge of Python programming. By the end of the course, students confidently...

Read More
Duration 5 days
Course Code RUST-116
Available Formats Classroom

Overview

This Rust training course teaches Python developers how to master the Rust programming language by leveraging their knowledge of Python programming. By the end of the course, students confidently build efficient, safe, and concurrent applications in Rust.

Skills Gained

  • Understand the Rust philosophy
  • Set up and navigate the Rust environment
  • Explore Rust within the context of Python
  • Understand basic Rust syntax and semantics
  • Use control flow and logic
  • Understand ownership and borrowing concepts
  • Use tuples, enums, structs, and vectors
  • Employ pattern matching
  • Implement Rust’s concurrency model
  • Create custom macros
  • Write Rust tests
  • Create documentation with Rustdoc

Prerequisites

  • Proficiency in Python programming
  • Basic understanding of programming concepts such as variables, expressions, functions, and control flow

Course Details

Training Materials

All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub through documentation and extensive code samples.

Software Requirements

  • A free, personal GitHub account to access the courseware
  • Permission to install Rust and Visual Studio Code on their computers
  • Permission to install Rust Crates and Visual Studio Extensions

If students cannot configure a local environment, a cloud-based environment can be provided.

Outline

  • Introduction
  • What is Rust?
    • Rust’s Philosophy and Goals
    • History and motivation
    • Rust vs Python
    • Rust Community
    • The Rust Playground
  • Install Rust
    • Script
    • macOS Homebrew
    • Platform Installers
  • Rust Editors
    • VSCode with Extensions
    • Rust Rover
    • Debug Rust in VSCode
    • GitHub Copilot
  • Hello World
    • Create a new Project
    • Main Function
    • Print to the Console
    • Comments
  • Cargo
    • What is Cargo?
    • How does Cargo compare to Pip and Conda?
    • Rust Crates compared to Python Packages
    • Run Command
    • Build Command
    • Build Release Command
    • Install Third-Party Crates
  • Rust and Python Differences
    • Static Typing vs Dynamic Typing
    • Memory Management
    • Error Handling
    • Sequence, Selection, and Iteration
    • Structs vs Classes
    • Traits vs Protocols
    • Generics
    • Concurrency
  • Scalar Types and Data
    • Rust Types vs Python Types
    • Constants
    • Immutable Variables
    • Mutable Variables
  • Code Logic
    • If Statement
    • Loop with Break
    • While Loop
  • Functions
    • Define a Function
    • Call a Function
    • Paramter Types
    • Return Types
    • Closure Functions
  • Modules
    • Import Modules from Standard Library
    • Import Modules from Third-Party Crates
    • Define Custom Modules
    • Import Custom Modules
  • Built-In Macros
    • print! and println!
    • format!
    • vec!
    • include_str! and include_bytes!
    • cfg! and env!
    • panic!
  • Memory Management
    • Problems with Manual Management
    • Problems with Garbage Collection
    • Ownership & Borrowing
    • Rust vs Python
    • References
    • Lifetimes
  • Strings
    • String Slices
    • String Objects
    • Convert Between Slices and Strings
    • Parse Number from String
    • Trim String
    • Print Strings with Interpolation
  • Tuples
    • What is a Tuple?
    • Heterogeneous Elements
    • Access Elements
    • Destructuring
    • Immutable
  • Enums
    • What is an Enum?
    • Define an Enum
    • Using Enums
    • Enum Variants
    • Enum Methods
    • Enums and Pattern Matching
    • Result Enum
    • Option Enum
    • Enums vs Structs
  • Structs
    • What is a Struct?
    • Create Instance
    • Field Init Shorthand
    • Struct Update Syntax
    • Tuple Structs
    • Unit-Like Structs
    • Ownership of Struct Data
    • Function Implementation
    • Associated Functions
    • Stuct Methods
    • Constructor Pattern
  • Vectors
    • What is a Vector?
    • Create a Vector
    • Add and Remove Elements
    • Access Elements
    • Iterate over Elements
    • Slicing, Length, and Capacity
    • Common Vector Operations
    • Understand Memory Management
    • Ownership and Borrowing Rules
  • Collections and Iterators
    • Vectors, arrays, and slices
    • HashMaps and hash sets
    • Iteration and iterators
  • Traits
    • What is a trait?
    • How does a trait related to traditional OOP interfaces?
    • Defining a trait
    • Implementing a trait
    • Default implementations
    • Traits as parameters
    • Traits as return types
    • Traits as bounds
  • Generics
    • What is a generic?
    • How does a generic related to traditional OOP generics?
    • Defining a generic
    • Implementing a generic
    • Generic bounds
    • Multiple generic types
    • Where clauses
  • Pattern Matching
    • What is Pattern Matching?
    • Match Statement
    • If Let Statement
    • While Let Statement
    • Destructuring Stucts and Tuples
    • Pattern Matching with Enums
    • Pattern Matching with Functions
    • Pattern Matching and Ownership
    • Refutability and Irrefutability
  • Concurrent Programming
    • What is Concurrent Programming?
    • Using Multiple Threads
    • Mutex, RwLock, and Arc
    • Message Passing with Channels
    • Sync and Send Traits
    • Futures and Async/Await
  • Unsafe Rust
    • What is Unsafe Rust?
    • Raw Pointers
    • Dereferencing Raw Pointers
    • Calling Unsafe Functions
    • Creating Safe Abstractions
    • Unsafe Traits
    • Unsafe Blocks
    • Unsafe Superpowers
  • Macros and Metaprogramming
    • What is a Macro?
    • Define a Macro with macro_rules!
    • Using Pattern Matching
    • Define Expansion
    • Use the Custom Macro
  • Tests
    • What is a Test?
    • Test Functions
    • Test Organization
    • Test Attributes
    • Test Coverage
    • assert!, assert_eq!, and assert_ne!
  • Documentation with Rustdoc
    • What is Rustdoc?
    • Add Documentation to Rust Code
    • Triple-Slash Comments and the #[doc] Attribute
    • Generate Documentation
    • Linking and Cross-Referencing Documentation
  • Python Extension written in Rust (overview)
    • Why write Python Extensions in Rust?
    • Create a New Extensions
    • Compile, Run, and Debug a Rust Extension
    • Run Parallel Code outside of the GIL
    • GIL and Rust Lifetimes
    • Create Python Classes in Rust
  • Conclusion

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Class was easy to sign up for and ExitCertified provided very good communication

I didn't have any problem navigating Exitcertified website or lab material at all.

Exit certified was great as it is very in depth and hands on learning which made it very easy to learn this type of work.

You get detailed labs to guide you through the technical material giving you a hands on method of learning otherwise difficult material.

This was a good program to get prepared for the solutions architect associate exam.